feat: static my stays
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import { benefits, myPages, overview, profile, profileEdit } from "./myPages"
|
||||
import {
|
||||
benefits,
|
||||
myPages,
|
||||
overview,
|
||||
profile,
|
||||
profileEdit,
|
||||
stays,
|
||||
} from "./myPages"
|
||||
|
||||
/**
|
||||
* These are routes in code we know requires auth
|
||||
@@ -11,4 +18,5 @@ export const authRequired = [
|
||||
...Object.values(overview),
|
||||
...Object.values(profile),
|
||||
...Object.values(profileEdit),
|
||||
...Object.values(stays),
|
||||
]
|
||||
|
||||
@@ -57,3 +57,13 @@ export const benefits = {
|
||||
no: `${myPages.no}/fordeler`,
|
||||
sv: `${myPages.sv}/formaner`,
|
||||
}
|
||||
|
||||
/** @type {import('@/types/routes').LangRoute} */
|
||||
export const stays = {
|
||||
da: `${myPages.da}/ophold`,
|
||||
de: `${myPages.de}/aufenthalte`,
|
||||
en: `${myPages.en}/stays`,
|
||||
fi: `${myPages.fi}/oleskeluni`,
|
||||
no: `${myPages.no}/opphold`,
|
||||
sv: `${myPages.sv}/vistelser`,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user