mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-18 13:29:03 +08:00
17 lines
347 B
Go
17 lines
347 B
Go
package router
|
|
|
|
import (
|
|
v1 "github.com/1Panel-dev/1Panel/app/api/v1"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type BaseRouter struct{}
|
|
|
|
func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
|
|
baseRouter := Router.Group("base")
|
|
baseApi := v1.ApiGroupApp.BaseApi
|
|
{
|
|
baseRouter.POST("login", baseApi.Login)
|
|
}
|
|
return baseRouter
|
|
}
|