Web: use backendURL() function to construct API and Add-on URLs
Use `backendURL()` function to construct API and Add-on URLs, so that they work regardless of what is serving the webapp (Flamenco Manager or the Vite development server).
This commit is contained in:
parent
7d049d3cda
commit
32f4ceedf3
@ -16,8 +16,8 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<api-spinner />
|
<api-spinner />
|
||||||
<span class="app-version">
|
<span class="app-version">
|
||||||
<a href="/flamenco3-addon.zip">add-on</a>
|
<a :href="backendURL('/flamenco3-addon.zip')">add-on</a>
|
||||||
| <a href="/api/v3/swagger-ui/">API</a>
|
| <a :href="backendURL('/api/v3/swagger-ui/')">API</a>
|
||||||
| version: {{ flamencoVersion }}
|
| version: {{ flamencoVersion }}
|
||||||
</span>
|
</span>
|
||||||
</header>
|
</header>
|
||||||
@ -27,6 +27,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as API from '@/manager-api';
|
import * as API from '@/manager-api';
|
||||||
import { apiClient } from '@/stores/api-query-count';
|
import { apiClient } from '@/stores/api-query-count';
|
||||||
|
import { backendURL } from '@/urls';
|
||||||
|
|
||||||
import ApiSpinner from '@/components/ApiSpinner.vue'
|
import ApiSpinner from '@/components/ApiSpinner.vue'
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ export default {
|
|||||||
data: () => ({
|
data: () => ({
|
||||||
flamencoName: DEFAULT_FLAMENCO_NAME,
|
flamencoName: DEFAULT_FLAMENCO_NAME,
|
||||||
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
|
flamencoVersion: DEFAULT_FLAMENCO_VERSION,
|
||||||
|
backendURL: backendURL,
|
||||||
}),
|
}),
|
||||||
mounted() {
|
mounted() {
|
||||||
window.app = this;
|
window.app = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user