Show Gitea version in swagger (#14654)

Show Gitea version in swagger

Co-authored-by: 6543 <6543@obermui.de>
tokarchuk/v1.17
techknowlogick 4 years ago committed by GitHub
parent 9e852edc41
commit a3cc842e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/api.go
  2. 2
      templates/swagger/v1_json.tmpl

@ -9,7 +9,7 @@
//
// Schemes: http, https
// BasePath: /api/v1
// Version: 1.1.1
// Version: {{AppVer}}
// License: MIT http://opensource.org/licenses/MIT
//
// Consumes:

@ -19,7 +19,7 @@
"name": "MIT",
"url": "http://opensource.org/licenses/MIT"
},
"version": "1.1.1"
"version": "{{AppVer}}"
},
"basePath": "{{AppSubUrl}}/api/v1",
"paths": {

Loading…
Cancel
Save