Fix endpoint names in url_for() calls; remove fallback URLs from api.js
This commit is contained in:
parent
c4804f0b55
commit
c7c246c32d
@ -1,10 +1,4 @@
|
|||||||
const U = window.NEUSICIAN_URLS ?? {
|
const U = window.NEUSICIAN_URLS;
|
||||||
astlog: '/sompyle/astlog',
|
|
||||||
score: '/sompyle/score.spls',
|
|
||||||
status: '/sompyle/status.json',
|
|
||||||
result: '/sompyle/result.mp3',
|
|
||||||
submit: '/sompyle',
|
|
||||||
};
|
|
||||||
|
|
||||||
export const URLS = U;
|
export const URLS = U;
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
window.NEUSICIAN_URLS = {
|
window.NEUSICIAN_URLS = {
|
||||||
astlog: "{{ url_for('get_static_astlog') }}",
|
astlog: "{{ url_for('astlog') }}",
|
||||||
score: "{{ url_for('plain_text_score') }}",
|
score: "{{ url_for('score') }}",
|
||||||
status: "{{ url_for('statusjson') }}",
|
status: "{{ url_for('statusjson') }}",
|
||||||
result: "{{ url_for('send_audio_generated') }}",
|
result: "{{ url_for('send_audio_generated') }}",
|
||||||
submit: "{{ url_for('public-yaml-acceptor') }}"
|
submit: "{{ url_for('public-yaml-acceptor') }}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user