Fix hardcoded API paths: inject URLs via url_for() in template, read from window.NEUSICIAN_URLS in api.js

This commit is contained in:
c0dev0id
2026-06-24 18:19:56 +02:00
parent 097d4488ef
commit c4804f0b55
3 changed files with 25 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { h, ref } from 'vue';
import { fetchScoreText, putScoreText } from '../api.js';
import { fetchScoreText, putScoreText, URLS } from '../api.js';
import { patchScore } from '../exporter.js';
import { StatusPoller } from './StatusPoller.js';
@@ -127,7 +127,7 @@ export const PaneCP = {
store.synthesisStatus?.file_accomplished
? h('audio', {
controls: true,
src: '/sompyle/result.mp3',
src: URLS.result,
style: 'display:block;width:100%;margin-top:0.5rem',
}) : null,
]);