added user Session Handler --> closed #20

This commit is contained in:
2025-08-12 15:47:36 +02:00
parent 64bc58a3a5
commit a87bef8c89
13 changed files with 127 additions and 101 deletions

View File

@@ -16,17 +16,13 @@ func TimeCreateHandler(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case http.MethodPut:
createBooking(w, r)
break
case http.MethodGet:
createBooking(w, r)
break
case http.MethodOptions:
// just support options header for non GET Requests from SWAGGER
w.WriteHeader(http.StatusOK)
break
default:
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
break
}
}