From a3cc842e15eb5ed42c3125410d9c774314a286a5 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Fri, 12 Feb 2021 15:51:56 -0500 Subject: [PATCH] Show Gitea version in swagger (#14654) Show Gitea version in swagger Co-authored-by: 6543 <6543@obermui.de> --- routers/api/v1/api.go | 2 +- templates/swagger/v1_json.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 855e44b65b..a8499e0ee8 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -9,7 +9,7 @@ // // Schemes: http, https // BasePath: /api/v1 -// Version: 1.1.1 +// Version: {{AppVer}} // License: MIT http://opensource.org/licenses/MIT // // Consumes: diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 94493749af..2dedb56d1e 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -19,7 +19,7 @@ "name": "MIT", "url": "http://opensource.org/licenses/MIT" }, - "version": "1.1.1" + "version": "{{AppVer}}" }, "basePath": "{{AppSubUrl}}/api/v1", "paths": {