mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
rename api end url to bookings
This commit is contained in:
@@ -157,7 +157,7 @@ export default function BookProvider({ children }) {
|
||||
|
||||
try {
|
||||
const booking = await createBooking(state.formData)
|
||||
router.push(`/booking/${booking.uuid}/stored`)
|
||||
router.push(`/bookings/${booking.uuid}/stored`)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
dispatch({ type: ACTIONS.POST_DATA_ERROR, payload: error.message })
|
||||
|
||||
Reference in New Issue
Block a user