added booking types + working on overtime
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user