Fix endpoint names in url_for() calls; remove fallback URLs from api.js

This commit is contained in:
c0dev0id 2026-06-24 18:24:08 +02:00
parent c4804f0b55
commit c7c246c32d
2 changed files with 3 additions and 9 deletions

View File

@ -1,10 +1,4 @@
const U = window.NEUSICIAN_URLS ?? {
astlog: '/sompyle/astlog',
score: '/sompyle/score.spls',
status: '/sompyle/status.json',
result: '/sompyle/result.mp3',
submit: '/sompyle',
};
const U = window.NEUSICIAN_URLS;
export const URLS = U;

View File

@ -11,8 +11,8 @@
</div>
<script>
window.NEUSICIAN_URLS = {
astlog: "{{ url_for('get_static_astlog') }}",
score: "{{ url_for('plain_text_score') }}",
astlog: "{{ url_for('astlog') }}",
score: "{{ url_for('score') }}",
status: "{{ url_for('statusjson') }}",
result: "{{ url_for('send_audio_generated') }}",
submit: "{{ url_for('public-yaml-acceptor') }}"