Files
web/routes/protected.ts
2024-03-14 11:02:36 +01:00

11 lines
259 B
TypeScript

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]}`
),
]