diff options
author | yp05327 <576951401@qq.com> | 2023-11-22 17:09:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 08:09:19 +0000 |
commit | 4d0eba8e0adf64de0bbef9ddb2f77277b1c5af5f (patch) | |
tree | 85a432dab85fc188c1064ba75f7b53c1b71ced22 | |
parent | 2d9b91aa243b3095277de62b5875a1a1fd6b1dbb (diff) | |
download | gitea-4d0eba8e0adf64de0bbef9ddb2f77277b1c5af5f.tar.gz gitea-4d0eba8e0adf64de0bbef9ddb2f77277b1c5af5f.zip |
Fix swagger title (#28164)
![image](https://github.com/go-gitea/gitea/assets/18380374/380859b2-a643-42fd-b53e-78c93c05c826)
Don't know why there's a `.` behind. 🤔
-rw-r--r-- | routers/api/v1/api.go | 2 | ||||
-rw-r--r-- | 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 cadddb44c3..2a41619c3c 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -2,7 +2,7 @@ // Copyright 2016 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT -// Package v1 Gitea API. +// Package v1 Gitea API // // This documentation describes the Gitea API. // diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 75a45dc68a..d32684c1af 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -14,7 +14,7 @@ "swagger": "2.0", "info": { "description": "This documentation describes the Gitea API.", - "title": "Gitea API.", + "title": "Gitea API", "license": { "name": "MIT", "url": "http://opensource.org/licenses/MIT" |