Skip to content

Commit

Permalink
Fix api doc response code (go-gitea#14123)
Browse files Browse the repository at this point in the history
  • Loading branch information
noerw authored Dec 24, 2020
1 parent fa2e349 commit bdeccc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routers/api/v1/user/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption
// name:
// type: string
// responses:
// "200":
// "201":
// "$ref": "#/responses/AccessToken"

t := &models.AccessToken{
Expand Down
2 changes: 1 addition & 1 deletion templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11128,7 +11128,7 @@
}
],
"responses": {
"200": {
"201": {
"$ref": "#/responses/AccessToken"
}
}
Expand Down

0 comments on commit bdeccc3

Please sign in to comment.