feat: add login and print user object on my-pages
This commit is contained in:
committed by
Simon Emanuelsson
parent
f1278a8d11
commit
70f9c22410
10
routes/protected.ts
Normal file
10
routes/protected.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { pageNames } from "@/constants/myPages"
|
||||
|
||||
import type { Lang } from "@/types/lang"
|
||||
|
||||
/* Authenticated routes */
|
||||
export const protectedRoutes: string[] = [
|
||||
...Object.keys(pageNames).map(
|
||||
(locale) => `/${locale}/${pageNames[locale as Lang]}`
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user