Fix implémentations de UploadDocument et models.NotFoundResponse()
This commit is contained in:
parent
37eb18cfa5
commit
48a8c8a37a
4 changed files with 17 additions and 16 deletions
|
@ -24,8 +24,8 @@ func (r SimpleResponse) Respond() Responder {
|
|||
return r
|
||||
}
|
||||
|
||||
func NotFoundResponse() SimpleResponse {
|
||||
return SimpleResponse{
|
||||
func NotFoundResponse() (int, SimpleResponse) {
|
||||
return http.StatusNotFound, SimpleResponse{
|
||||
Message: "Not Found",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue