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-13 13:47:22 +08:00
parent 6e5e999937
commit 2c8e4f7b56
26 changed files with 508 additions and 196 deletions

View File

@@ -3,9 +3,11 @@ package api
import (
"github.com/gin-gonic/gin"
"sub2clash/api/controller"
"sub2clash/middleware"
)
func SetRoute(r *gin.Engine) {
r.Use(middleware.ZapLogger())
r.GET(
"/clash", func(c *gin.Context) {
controller.SubmodHandler(c)