]> source.dussan.org Git - gitea.git/commitdiff
Show Gitea version in swagger (#14654)
authortechknowlogick <techknowlogick@gitea.io>
Fri, 12 Feb 2021 20:51:56 +0000 (15:51 -0500)
committerGitHub <noreply@github.com>
Fri, 12 Feb 2021 20:51:56 +0000 (21:51 +0100)
Show Gitea version in swagger

Co-authored-by: 6543 <6543@obermui.de>
routers/api/v1/api.go
templates/swagger/v1_json.tmpl

index 855e44b65bf5839629d2ba75f7bbbcff7d59900f..a8499e0ee8f6a9a7a875992ac8a5c570e41620cf 100644 (file)
@@ -9,7 +9,7 @@
 //
 //     Schemes: http, https
 //     BasePath: /api/v1
-//     Version: 1.1.1
+//     Version: {{AppVer}}
 //     License: MIT http://opensource.org/licenses/MIT
 //
 //     Consumes:
index 94493749afa4abd3dd7309e1eed901ddc9b8cdea..2dedb56d1ec2594bb290b19be3be74d1655880ef 100644 (file)
@@ -19,7 +19,7 @@
       "name": "MIT",
       "url": "http://opensource.org/licenses/MIT"
     },
-    "version": "1.1.1"
+    "version": "{{AppVer}}"
   },
   "basePath": "{{AppSubUrl}}/api/v1",
   "paths": {