move admin api to /admin

This commit is contained in:
Thomas Ruoff
2020-11-02 22:44:27 +01:00
parent d440d0e07e
commit 19c8bc7be2
5 changed files with 127 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ async function saveBill(
status: BILL_STATUS
}
): Promise<BillDocument> {
const response = await fetch(`/api/booking/${booking.uuid}/bill`, {
const response = await fetch(`/api/admin/booking/${booking.uuid}/bill`, {
method: booking.bill?._id ? 'PATCH' : 'POST',
mode: 'cors',
cache: 'no-cache',