diff --git a/frontend/src/routes/(admin)/admin/[...path]/+page.ts b/frontend/src/routes/(admin)/admin/[...path]/+page.ts new file mode 100644 index 0000000..f851f40 --- /dev/null +++ b/frontend/src/routes/(admin)/admin/[...path]/+page.ts @@ -0,0 +1,6 @@ +import { redirect } from "@sveltejs/kit"; +import type { PageLoad } from "./$types"; + +export const load: PageLoad = () => { + throw redirect(302, "/admin/auth/login") +} \ No newline at end of file diff --git a/frontend/src/routes/(candidate)/[...path]/+page.ts b/frontend/src/routes/(candidate)/[...path]/+page.ts new file mode 100644 index 0000000..f4d4f1e --- /dev/null +++ b/frontend/src/routes/(candidate)/[...path]/+page.ts @@ -0,0 +1,6 @@ +import { redirect } from "@sveltejs/kit"; +import type { PageLoad } from "./$types"; + +export const load: PageLoad = () => { + throw redirect(302, "/auth/login") +} \ No newline at end of file