Skip to content

Commit

Permalink
Show Gitea version in swagger (#14654)
Browse files Browse the repository at this point in the history
Show Gitea version in swagger

Co-authored-by: 6543 <6543@obermui.de>
  • Loading branch information
techknowlogick and 6543 authored Feb 12, 2021
1 parent 9e852ed commit a3cc842
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/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Schemes: http, https
// BasePath: /api/v1
// Version: 1.1.1
// Version: {{AppVer}}
// License: MIT http://opensource.org/licenses/MIT
//
// Consumes:
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 @@ -19,7 +19,7 @@
"name": "MIT",
"url": "http://opensource.org/licenses/MIT"
},
"version": "1.1.1"
"version": "{{AppVer}}"
},
"basePath": "{{AppSubUrl}}/api/v1",
"paths": {
Expand Down

0 comments on commit a3cc842

Please sign in to comment.