Skip to content

Commit f369448

Browse files
committed
fix(router): robots.txt使用ginR作为根路由而不是mediawarpRouter
1 parent 90af0ba commit f369448

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/router/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func InitRouter() *gin.Engine {
3939
mediawarpRouter.Static("/custom", config.CostomDir())
4040
}
4141
if config.Web.Robots != "" { // 自定义 robots.txt
42-
mediawarpRouter.GET(
42+
ginR.GET(
4343
"/robots.txt",
4444
func(ctx *gin.Context) {
4545
ctx.String(http.StatusOK, config.Web.Robots)

0 commit comments

Comments
 (0)