Compare commits

..

No commits in common. "24c3d1c8947dfd2ed11d9da6d57dda794657839c" and "653fe27066920f7f8137cd82cc579f06982da98f" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ func NewRouter() *gin.Engine {
resourceRoute.POST("/tus/upload", file.TusUpload)
resourceRoute.GET("/raw", file.Raw)
resourceRoute.GET("/raw/dir", file.DirDownload)
resourceRoute.GET("/preview/:path", file.Preview)
resourceRoute.GET("/preview", file.Preview)
resourceRoute.GET("/list", file.List)
resourceRoute.GET("/usage", file.Usage)
}

View File

@ -207,7 +207,7 @@ func Preview(ctx *gin.Context) {
size = 1
}
resp, err := service.FilesProvider.Preview(ctx, &files.PreviewReq{
Path: ctx.Param("path"),
Path: ctx.Query("path"),
UserSpacePath: getUserSpacePath(ctx),
Size: uint32(size),
})