22 lines
507 B
Go
22 lines
507 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"hy2xs-admin/controller"
|
|
)
|
|
|
|
func initHysteria2MachineAuthRouter(hysteria2Api *gin.RouterGroup) {
|
|
hysteria2 := hysteria2Api.Group("/hysteria2")
|
|
{
|
|
hysteria2.POST("/auth", controller.Hysteria2Auth)
|
|
}
|
|
}
|
|
|
|
func initHysteria2Router(hysteria2Api *gin.RouterGroup) {
|
|
hysteria2 := hysteria2Api.Group("/hysteria2")
|
|
{
|
|
hysteria2.POST("/hysteria2ChangeVersion", controller.Hysteria2ChangeVersion)
|
|
hysteria2.GET("/listRelease", controller.ListRelease)
|
|
}
|
|
}
|