From 3b31406ed3201d2726fcc60778d714afd595da0d Mon Sep 17 00:00:00 2001 From: EETagent Date: Mon, 5 Dec 2022 15:05:28 +0100 Subject: [PATCH] feat: add default routes --- frontend/src/routes/(admin)/admin/[...path]/+page.ts | 6 ++++++ frontend/src/routes/(candidate)/[...path]/+page.ts | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 frontend/src/routes/(admin)/admin/[...path]/+page.ts create mode 100644 frontend/src/routes/(candidate)/[...path]/+page.ts 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