1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 21:54:42 -05:00
sub2clash/api/route.go

20 lines
274 B
Go
Raw Normal View History

2023-09-12 06:40:24 -04:00
package api
import (
"github.com/gin-gonic/gin"
2023-09-12 12:46:17 -04:00
"sub2clash/api/controller"
2023-09-12 06:40:24 -04:00
)
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)
},
)
}