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

@@ -27,14 +27,6 @@ type Claims struct {
}
func HandleLogin(w http.ResponseWriter, r *http.Request) {
// if r.Method != http.MethodPost {
// core.JSONError{
// Status: core.Error,
// Message: "Method is not allowed",
// }.Respond(w, http.StatusMethodNotAllowed)
// return
// }
if r.Body == nil {
core.JSONError{
Status: core.Error,