parent
5dd14c1ffe
commit
cc50c794ba
1 changed files with 5 additions and 0 deletions
|
@ -110,7 +110,10 @@ func handleCreater(c api.Creater) errorHandler {
|
|||
if err != nil {
|
||||
return newJSONError(err, http.StatusInternalServerError)
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusCreated)
|
||||
w.Write(data)
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
@ -129,6 +132,8 @@ func handleDeleter(d api.Deleter) errorHandler {
|
|||
return appErr
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue