Small improvements

This commit is contained in:
cdricms
2025-01-16 14:42:20 +01:00
parent 9bbd992e95
commit 2fc8a3f347
7 changed files with 1 additions and 50 deletions

View File

@@ -8,14 +8,6 @@ import (
)
func HandleDeleteUser(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodDelete {
core.JSONError{
Status: core.Error,
Message: "Method is not allowed.",
}.Respond(w, http.StatusMethodNotAllowed)
return
}
uuid := r.PathValue("user_uuid")
_, err := core.DB.NewDelete().
Model((*core.User)(nil)).