feat: Added basic user authorization

This commit is contained in:
2025-08-20 01:24:49 +03:00
parent b72066f19e
commit fb4902dea6
15 changed files with 396 additions and 2 deletions

View File

@@ -110,6 +110,7 @@ func (r responseErrBuilder) Send(response http.ResponseWriter, request *http.Req
r.status = http.StatusInternalServerError
}
response.Header().Set("Content-Type", "application/json")
response.WriteHeader(r.status)
_, err = response.Write(format)