mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
REST API: remove status from ApiResponse
it duplicates the header HTTP status
This commit is contained in:
@@ -82,9 +82,8 @@ type Conf struct {
|
||||
}
|
||||
|
||||
type apiResponse struct {
|
||||
Error string `json:"error"`
|
||||
Message string `json:"message"`
|
||||
HTTPStatus int `json:"status"`
|
||||
Error string `json:"error,omitempty"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
// Initialize configures and starts the HTTP server
|
||||
|
||||
Reference in New Issue
Block a user