feat(api): Add /device-group/accessible for 1.3.8

This commit is contained in:
lejianwen
2025-02-23 15:32:44 +08:00
parent f0b4b0d7c6
commit 73f3056878
3 changed files with 36 additions and 10 deletions

View File

@@ -79,6 +79,8 @@ func ApiInit(g *gin.Engine) {
gr := &api.Group{}
frg.GET("/users", gr.Users)
frg.GET("/peers", gr.Peers)
// /api/device-group/accessible?current=1&pageSize=100
frg.GET("/device-group/accessible", gr.Device)
}
{
@@ -88,6 +90,7 @@ func ApiInit(g *gin.Engine) {
//更新地址
frg.POST("/ab", ab.UpAb)
}
PersonalRoutes(frg)
//访问静态文件
g.StaticFS("/upload", http.Dir(global.Config.Gin.ResourcesPath+"/public/upload"))