mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-16 21:11:06 +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