CHANGE: added get for create booking

This commit is contained in:
2024-09-19 16:26:35 +02:00
parent 0c0034644e
commit 8b2e042f62
2 changed files with 53 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ func timeCreateHandler(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "PUT":
createBooking(w, r)
case "GET":
createBooking(w, r)
case "OPTIONS":
w.WriteHeader(http.StatusOK)
default: