summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/api/v1/user/app.go2
-rw-r--r--templates/swagger/v1_json.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go
index d02b8cea21..547730ea57 100644
--- a/routers/api/v1/user/app.go
+++ b/routers/api/v1/user/app.go
@@ -85,7 +85,7 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption
// name:
// type: string
// responses:
- // "200":
+ // "201":
// "$ref": "#/responses/AccessToken"
t := &models.AccessToken{
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index d0303040c5..72665e2b6d 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -11128,7 +11128,7 @@
}
],
"responses": {
- "200": {
+ "201": {
"$ref": "#/responses/AccessToken"
}
}