windmill-components 1.444.0 → 1.444.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ import Label from '../Label.svelte';
|
|
|
8
8
|
import CopyableCodeBlock from '../details/CopyableCodeBlock.svelte';
|
|
9
9
|
import { bash } from 'svelte-highlight/languages';
|
|
10
10
|
import { HttpTriggerService } from '../../gen';
|
|
11
|
-
import { page } from '$app/stores'
|
|
11
|
+
// import { page } from '$app/stores'
|
|
12
12
|
import { isCloudHosted } from '../../cloud';
|
|
13
13
|
import { base } from '../../base';
|
|
14
14
|
import CaptureSection from './CaptureSection.svelte';
|
|
@@ -54,7 +54,7 @@ async function routeExists(route_path, method) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
function getHttpRoute(route_path) {
|
|
57
|
-
return `${
|
|
57
|
+
return `${location.origin}${base}/api/r/${isCloudHosted() ? $workspaceStore + '/' : ''}${route_path}`;
|
|
58
58
|
}
|
|
59
59
|
$: validateRoute(route_path, http_method);
|
|
60
60
|
$: isValid = routeError === '';
|