fix: add correct routing

This commit is contained in:
Christel Westerberg
2024-04-12 13:48:50 +02:00
parent a99b2d3f08
commit 55fe30c77a
11 changed files with 59 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import { myPages, profile } from "./myPages"
import { benefits, myPages, profile } from "./myPages"
/**
* These are routes in code we know requires auth
@@ -8,4 +8,5 @@ import { myPages, profile } from "./myPages"
export const authRequired = [
...Object.values(myPages),
...Object.values(profile),
...Object.values(benefits),
]

View File

@@ -26,3 +26,13 @@ export const profile = {
no: `${myPages.no}/profile-no`,
sv: `${myPages.sv}/profile-sv`,
}
/** @type {import('@/types/routes').LangRoute} */
export const benefits = {
da: `${myPages.da}/fordele`,
de: `${myPages.de}/vorteile`,
en: `${myPages.en}/benefits`,
fi: `${myPages.fi}/etuja`,
no: `${myPages.no}/fordeler`,
sv: `${myPages.sv}/formaner`,
}