mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-12-15 18:40:16 +00:00
init
This commit is contained in:
19
api/route.go
Normal file
19
api/route.go
Normal 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)
|
||||
},
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user