Browse Source

Fix api doc response code (#14123)

Fixes #14120
mj-v1.14.3
Norwin 2 years ago
committed by GitHub
parent
commit
bdeccc3688
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/user/app.go
  2. 2
      templates/swagger/v1_json.tmpl

2
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{

2
templates/swagger/v1_json.tmpl

@ -11128,7 +11128,7 @@
}
],
"responses": {
"200": {
"201": {
"$ref": "#/responses/AccessToken"
}
}

Loading…
Cancel
Save