rename api end url to bookings

This commit is contained in:
Thomas Ruoff
2021-06-21 23:35:00 +02:00
parent 3babb39ec2
commit 718ed41f8d
13 changed files with 15 additions and 15 deletions

View File

@@ -75,7 +75,7 @@ export async function createBill(
bookingUuid: string,
bill: Bill
): Promise<Bill> {
return fetch(`/api/booking/${bookingUuid}/bill`, {
return fetch(`/api/bookings/${bookingUuid}/bill`, {
method: 'POST',
body: bill,
})
@@ -85,7 +85,7 @@ export async function patchBill(
bookingUuid: string,
bill: Bill
): Promise<Bill> {
return fetch(`/api/booking/${bookingUuid}/bill`, {
return fetch(`/api/bookings/${bookingUuid}/bill`, {
method: 'POST',
body: bill,
})