1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2025-12-15 18:40:16 +00:00
This commit is contained in:
2023-09-12 18:40:24 +08:00
commit d894fea89e
25 changed files with 2179 additions and 0 deletions

19
api/route.go Normal file
View File

@@ -0,0 +1,19 @@
package api
import (
"github.com/gin-gonic/gin"
"sub/api/controller"
)
func SetRoute(r *gin.Engine) {
r.GET(
"/clash", func(c *gin.Context) {
controller.SubmodHandler(c)
},
)
r.GET(
"/meta", func(c *gin.Context) {
controller.SubHandler(c)
},
)
}