refactor: url management in hotel reservation flow
This commit is contained in:
@@ -112,14 +112,14 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
// ----------------------------------------
|
||||
// fromDate param missing
|
||||
// fromdate param missing
|
||||
// ----------------------------------------
|
||||
source:
|
||||
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
|
||||
destination: "/:lang/hotelreservation/select-rate",
|
||||
missing: [
|
||||
{
|
||||
key: "fromDate",
|
||||
key: "fromdate",
|
||||
type: "query",
|
||||
value: undefined,
|
||||
},
|
||||
@@ -128,14 +128,14 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
// ----------------------------------------
|
||||
// fromDate param has to be a date
|
||||
// fromdate param has to be a date
|
||||
// ----------------------------------------
|
||||
source:
|
||||
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
|
||||
destination: "/:lang/hotelreservation/select-rate",
|
||||
missing: [
|
||||
{
|
||||
key: "fromDate",
|
||||
key: "fromdate",
|
||||
type: "query",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0?[1-9]|[12]\\d|3[01]))$",
|
||||
},
|
||||
@@ -144,14 +144,14 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
// ----------------------------------------
|
||||
// toDate param missing
|
||||
// todate param missing
|
||||
// ----------------------------------------
|
||||
source:
|
||||
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
|
||||
destination: "/:lang/hotelreservation/select-rate",
|
||||
missing: [
|
||||
{
|
||||
key: "toDate",
|
||||
key: "todate",
|
||||
type: "query",
|
||||
value: undefined,
|
||||
},
|
||||
@@ -160,14 +160,14 @@ const nextConfig = {
|
||||
},
|
||||
{
|
||||
// ----------------------------------------
|
||||
// toDate param has to be a date
|
||||
// todate param has to be a date
|
||||
// ----------------------------------------
|
||||
source:
|
||||
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
|
||||
destination: "/:lang/hotelreservation/select-rate",
|
||||
missing: [
|
||||
{
|
||||
key: "toDate",
|
||||
key: "todate",
|
||||
type: "query",
|
||||
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0?[1-9]|[12]\\d|3[01]))$",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user