refactor: use default error response for swagger (#40048)

ref: https://github.com/go-gitea/gitea/pull/39942#discussion_r4393487959
This commit is contained in:
wxiaoguang authored and GitHub committed 2026-10-28 09:05:00 +00:00
1 parent 30e5ef4228
commit 5671c5192d
93 files changed
+2600 -6894

No files matched your search

+4 -4
View File
@@ -32,8 +32,8 @@ func GetAllEmails(ctx *context.APIContext) {
// responses:
// "200":
// "$ref": "#/responses/EmailList"
// "403":
// "$ref": "#/responses/forbidden"
// default:
// "$ref": "#/responses/error"
listOptions := utils.GetListOptions(ctx)
@@ -79,8 +79,8 @@ func SearchEmail(ctx *context.APIContext) {
// responses:
// "200":
// "$ref": "#/responses/EmailList"
// "403":
// "$ref": "#/responses/forbidden"
// default:
// "$ref": "#/responses/error"
ctx.SetPathParam("email", ctx.FormTrim("q"))
GetAllEmails(ctx)