Return HTTP 404 for non-existing admin pages

This commit is contained in:
jordi fita mas 2023-08-08 19:52:00 +02:00
parent d117ce5027
commit 6f6d251cf7
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ func (h *adminHandler) Handle(user *auth.User, company *auth.Company, conn *data
default:
httplib.MethodNotAllowed(w, r, http.MethodGet)
}
default:
http.NotFound(w, r)
}
})
}