added booking types + working on overtime

This commit is contained in:
2025-09-01 22:41:21 +02:00
parent aa152866d9
commit de6da2906f
16 changed files with 284 additions and 29 deletions

View File

@@ -50,8 +50,9 @@ func createBooking(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusAccepted)
json.NewEncoder(w).Encode(booking)
return
}
w.WriteHeader(http.StatusBadRequest)
http.Error(w, "Cannot verify booking, maybe missing a parameter", http.StatusBadRequest)
}
func verifyToken(r *http.Request) bool {