1Panel/core/router/ro_agent.go
ssongliu f0274701cf
Some checks failed
sync2gitee / repo-sync (push) Failing after -7m48s
feat: 修改备份账号同步方式 (#6108)
2024-08-13 15:33:34 +08:00

16 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)
}
}