setup umbracoPath util

This commit is contained in:
Jacob Overgaard
2022-11-09 11:48:57 +01:00
parent 3dc25dbd44
commit 91b3c369ff

View File

@@ -1,7 +1,4 @@
import { Path } from 'msw';
import type { paths } from '../../../schemas/generated-schema';
export function umbracoPath(path: keyof paths): Path {
return `/umbraco/backoffice${path}`;
import type { Path } from 'msw';
export function umbracoPath(path: string): Path {
return `/umbraco/management/api/v1${path}`;
}