fix(router): remove unused get all group route
This commit is contained in:
2
assets
2
assets
Submodule assets updated: cdbc2861f9...1c87bc1c16
@@ -373,24 +373,6 @@ func UserSearch(c *gin.Context) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetGroupList list all groups for options
|
|
||||||
func GetGroupList(c *gin.Context) {
|
|
||||||
u, err := user.ListAllGroups(c)
|
|
||||||
if err != nil {
|
|
||||||
c.JSON(200, serializer.Err(c, err))
|
|
||||||
c.Abort()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
hasher := dependency.FromContext(c).HashIDEncoder()
|
|
||||||
c.JSON(200, serializer.Response{
|
|
||||||
Data: lo.Map(u, func(item *ent.Group, index int) *user.Group {
|
|
||||||
g := user.BuildGroup(item, hasher)
|
|
||||||
return user.RedactedGroup(g)
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// ListPublicShare lists all public shares for given user
|
// ListPublicShare lists all public shares for given user
|
||||||
func ListPublicShare(c *gin.Context) {
|
func ListPublicShare(c *gin.Context) {
|
||||||
service := ParametersFromContext[*share.ListShareService](c, share.ListShareParamCtx{})
|
service := ParametersFromContext[*share.ListShareService](c, share.ListShareParamCtx{})
|
||||||
|
|||||||
@@ -1101,12 +1101,6 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group := auth.Group("group")
|
|
||||||
{
|
|
||||||
// list all groups for options
|
|
||||||
group.GET("list", controllers.GetGroupList)
|
|
||||||
}
|
|
||||||
|
|
||||||
// WebDAV and devices
|
// WebDAV and devices
|
||||||
devices := auth.Group("devices")
|
devices := auth.Group("devices")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user