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

@@ -0,0 +1,15 @@
import { NextResponse } from "next/server"
import { bookingFlow } from "@/constants/routes/hotelReservation"
import type { NextMiddleware } from "next/server"
import type { MiddlewareMatcher } from "@/types/middleware"
export const middleware: NextMiddleware = () => {
return NextResponse.next()
}
export const matcher: MiddlewareMatcher = (request) => {
return bookingFlow.includes(request.nextUrl.pathname)
}