refactor(SW-1273): move find my booking routes in order to import them directly into next config

This commit is contained in:
Christian Andolf
2025-02-26 13:02:20 +01:00
parent 51f71383d4
commit 7d3c0c96e3
7 changed files with 28 additions and 22 deletions

View File

@@ -24,12 +24,3 @@ export const myBooking = {
sv: "https://test.scandichotels.se/hotelreservation/din-bokning",
},
}
export const findMyBooking = {
da: "/da/hotelreservation/hent-booking",
de: "/de/hotelreservation/mein-bereich",
en: "/en/hotelreservation/get-booking",
fi: "/fi/hotelreservation/hae-varaus",
no: "/no/hotelreservation/get-booking",
sv: "/sv/hotelreservation/hitta-bokning",
}

View File

@@ -0,0 +1,14 @@
/**
* @file Due to these records being used in next.config.js, and that is required
* to be a js file, we use jsdoc to type these.
*/
/** @type {import('@/types/routes').LangRoute} */
export const findMyBooking = {
da: "/da/hotelreservation/hent-booking",
de: "/de/hotelreservation/mein-bereich",
en: "/en/hotelreservation/get-booking",
fi: "/fi/hotelreservation/hae-varaus",
no: "/no/hotelreservation/get-booking",
sv: "/sv/hotelreservation/hitta-bokning",
}