We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90af0ba commit f369448Copy full SHA for f369448
1 file changed
internal/router/router.go
@@ -39,7 +39,7 @@ func InitRouter() *gin.Engine {
39
mediawarpRouter.Static("/custom", config.CostomDir())
40
}
41
if config.Web.Robots != "" { // 自定义 robots.txt
42
- mediawarpRouter.GET(
+ ginR.GET(
43
"/robots.txt",
44
func(ctx *gin.Context) {
45
ctx.String(http.StatusOK, config.Web.Robots)
0 commit comments