summaryrefslogtreecommitdiffstats
path: root/modules/context/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context/api.go')
-rw-r--r--modules/context/api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/context/api.go b/modules/context/api.go
index 5d91ac49a3..acecf8f264 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -65,6 +65,10 @@ type APINotFound struct{}
// swagger:response redirect
type APIRedirect struct{}
+//APIString is a string response
+// swagger:response string
+type APIString string
+
// Error responds with an error message to client with given obj as the message.
// If status is 500, also it prints error to log.
func (ctx *APIContext) Error(status int, title string, obj interface{}) {