mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 02:50:47 +00:00
feat: add default routes
This commit is contained in:
parent
5096f8ddca
commit
3b31406ed3
2 changed files with 12 additions and 0 deletions
6
frontend/src/routes/(admin)/admin/[...path]/+page.ts
Normal file
6
frontend/src/routes/(admin)/admin/[...path]/+page.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
import { redirect } from "@sveltejs/kit";
|
||||||
|
import type { PageLoad } from "./$types";
|
||||||
|
|
||||||
|
export const load: PageLoad = () => {
|
||||||
|
throw redirect(302, "/admin/auth/login")
|
||||||
|
}
|
||||||
6
frontend/src/routes/(candidate)/[...path]/+page.ts
Normal file
6
frontend/src/routes/(candidate)/[...path]/+page.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
import { redirect } from "@sveltejs/kit";
|
||||||
|
import type { PageLoad } from "./$types";
|
||||||
|
|
||||||
|
export const load: PageLoad = () => {
|
||||||
|
throw redirect(302, "/auth/login")
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue