feat(upload): mount existing my/update/download routes on user API

This commit is contained in:
ryan
2026-08-30 11:17:11 +08:00
parent 6f25618e83
commit 177d771acf
2 changed files with 57 additions and 0 deletions
+4
View File
@@ -126,6 +126,10 @@ func (p *Plugin) Apply(ctx *core.Context) error {
uploadGroup.GET("", handler.ListFiles)
uploadGroup.DELETE("/:id", handler.DeleteFile)
uploadGroup.POST("/batch-download", handler.BatchDownloadFiles)
uploadGroup.GET("/my", handler.ListMyFiles)
uploadGroup.PUT("/:id", handler.UpdateMyFile)
uploadGroup.GET("/download/:id", handler.DownloadFile)
uploadGroup.POST("/download/batch", handler.BatchDownloadFiles)
}
adminUploadGroup := ctx.Router().Group("/api/v1/admin/uploads", loginMW)