urls corrected on fetch
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
import type { FormSubmitEvent } from '@nuxt/ui'
|
||||
|
||||
const { loggedIn } = useUserSession()
|
||||
const conf = useRuntimeConfig()
|
||||
const base_url = conf.app.baseURL.endsWith('/') ? conf.app.baseURL.slice(0, -1) : conf.app.baseURL
|
||||
|
||||
|
||||
const video = ref(0);
|
||||
const url = ref("");
|
||||
@@ -34,7 +37,7 @@
|
||||
|
||||
|
||||
async function start_conversion(event: FormSubmitEvent<musicParamsSchema>) {
|
||||
return fetch("/convert", {
|
||||
return fetch(base_url + "/convert", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
|
||||
Reference in New Issue
Block a user