diff options
Diffstat (limited to 'modules/context/api.go')
-rw-r--r-- | modules/context/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/context/api.go b/modules/context/api.go index 7264214f37..0bf4307726 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -51,6 +51,10 @@ type APIForbiddenError struct { // swagger:response notFound type APINotFound struct{} +//APIRedirect is a redirect response +// swagger:response redirect +type APIRedirect struct{} + // Error responses error message to client with given message. // If status is 500, also it prints error to log. func (ctx *APIContext) Error(status int, title string, obj interface{}) { |