.
This commit is contained in:
parent
1913a0429f
commit
90cff1ac5b
@ -120,14 +120,6 @@ func (api *Api) ReadUser(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// func (api *Api) ReadAuthenticatedUser(w http.ResponseWriter, r *http.Request) {
|
||||
// user := common.GetUser(r).ID
|
||||
// // if err != nil {
|
||||
// // if errors.Is(err, data.ErrRecordNotFound) {
|
||||
// // api.errorResponse(w, r, data.ErrRecordNotFound)
|
||||
// // } else {
|
||||
// // api.ServerErrorResponse(w, r, err)
|
||||
// // }
|
||||
// // return
|
||||
// // }
|
||||
|
||||
// if err := common.WriteJSON(w, http.StatusOK, common.Envelope{"user": user}, nil); err != nil {
|
||||
// api.ServerErrorResponse(w, r, err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user