mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
17 lines
334 B
Go
17 lines
334 B
Go
|
package router
|
||
|
|
||
|
import (
|
||
|
v2 "github.com/1Panel-dev/1Panel/core/app/api/v2"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
type AgentRouter struct{}
|
||
|
|
||
|
func (s *AgentRouter) InitRouter(Router *gin.RouterGroup) {
|
||
|
baseApi := v2.ApiGroupApp.BaseApi
|
||
|
{
|
||
|
Router.GET("/backup/:id", baseApi.GetBackup)
|
||
|
Router.POST("/backup/list", baseApi.ListBackup)
|
||
|
}
|
||
|
}
|