Merge branch 'feat-hjj-filebrowser#Saas3' into dev
This commit is contained in:
commit
88ef2fc64f
@ -42,6 +42,14 @@ func List(ctx *gin.Context) {
|
|||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
path := ctx.DefaultQuery("path", "/")
|
||||||
|
sortBy := ctx.DefaultQuery("sortBy", "name")
|
||||||
|
sortAsc, _ := strconv.ParseBool(ctx.DefaultQuery("sortAsc", "true"))
|
||||||
|
req.Path = path
|
||||||
|
req.Sorting = &files.Sorting{
|
||||||
|
By: sortBy,
|
||||||
|
Asc: sortAsc,
|
||||||
|
}
|
||||||
resp, err := service.FilesProvider.List(ctx, &req)
|
resp, err := service.FilesProvider.List(ctx, &req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
service.Error(ctx, err)
|
service.Error(ctx, err)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user