fix base url of flow webhooks for embedded windmill

This commit is contained in:
Ruben Fiszel
2024-08-20 23:24:35 +02:00
parent 9226d6cbc1
commit 776e978752
@@ -60,10 +60,10 @@
}
function computeFlowWebhooks(path: string) {
let base = `${$page.url.origin}/api/w/${$workspaceStore}/jobs`
let webhooksBase = `${$page.url.origin}${base}/api/w/${$workspaceStore}/jobs`
let urlAsync = `${base}/run/f/${path}`
let urlSync = `${base}/run_wait_result/f/${path}`
let urlAsync = `${webhooksBase}/run/f/${path}`
let urlSync = `${webhooksBase}/run_wait_result/f/${path}`
return {
async: {
path: urlAsync