feat: create route for hotel reservation

This commit is contained in:
Fredrik Thorsson
2024-07-03 09:40:25 +02:00
parent 2eb5e2aae3
commit 37f4713715
7 changed files with 65 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import createJiti from "jiti"
import { login, logout } from "./constants/routes/handleAuth.js"
import { hotelReservation } from "./constants/routes/hotelReservation.js"
import { myPages } from "./constants/routes/myPages.js"
const jiti = createJiti(new URL(import.meta.url).pathname)
@@ -101,6 +102,11 @@ const nextConfig = {
source: `${myPages.sv}/:path*`,
destination: `/sv/my-pages/:path*`,
},
{ source: hotelReservation.da, destination: "/da/hotelreservation" },
{ source: hotelReservation.de, destination: "/de/hotelreservation" },
{ source: hotelReservation.fi, destination: "/fi/hotelreservation" },
{ source: hotelReservation.no, destination: "/no/hotelreservation" },
{ source: hotelReservation.sv, destination: "/sv/hotelreservation" },
],
}
},