mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-07-04 03:52:33 +08:00
20 lines
268 B
Go
20 lines
268 B
Go
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)
|
|
},
|
|
)
|
|
}
|