You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/08/06 08:46:30 UTC

(incubator-answer) 04/07: typo: GetCss swagger annotation content

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 8762f5b751a99da9e525b2f1c4625a5472813c4e
Author: Sonui <me...@sonui.cn>
AuthorDate: Fri Aug 2 00:01:01 2024 +0800

    typo: GetCss swagger annotation content
---
 internal/controller_admin/siteinfo_controller.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/internal/controller_admin/siteinfo_controller.go b/internal/controller_admin/siteinfo_controller.go
index 623ab5f7..6429d671 100644
--- a/internal/controller_admin/siteinfo_controller.go
+++ b/internal/controller_admin/siteinfo_controller.go
@@ -188,12 +188,12 @@ func (sc *SiteInfoController) GetRobots(ctx *gin.Context) {
 	ctx.String(http.StatusOK, resp.Robots)
 }
 
-// GetRobots get site robots information
-// @Summary get site robots information
-// @Description get site robots information
+// GetCss get site custom CSS
+// @Summary get site custom CSS
+// @Description get site custom CSS
 // @Tags site
-// @Produce json
-// @Success 200 {string} txt ""
+// @Produce text/css
+// @Success 200 {string} css ""
 // @Router /custom.css [get]
 func (sc *SiteInfoController) GetCss(ctx *gin.Context) {
 	resp, err := sc.siteInfoService.GetSiteCustomCssHTML(ctx)