浏览代码

add clash

zu1k 5 年之前
父节点
当前提交
1d890b0257
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/router.go

+ 1 - 0
api/router.go

@@ -15,6 +15,7 @@ var router *gin.Engine
 func setupRouter() {
 func setupRouter() {
 	router = gin.Default()
 	router = gin.Default()
 
 
+	router.StaticFile("/clash", "example/clash.html")
 	router.StaticFile("/clash/config", "example/clash-config.yaml")
 	router.StaticFile("/clash/config", "example/clash-config.yaml")
 	router.GET("/clash/proxies", func(c *gin.Context) {
 	router.GET("/clash/proxies", func(c *gin.Context) {
 		text := cache.GetString("clashproxies")
 		text := cache.GetString("clashproxies")