feat: add form upload api (close #1693 #1709)

This commit is contained in:
Noah Hsu
2022-09-22 16:53:58 +08:00
parent c7f6684eed
commit 4d6ab53336
3 changed files with 136 additions and 57 deletions

View File

@ -119,7 +119,8 @@ func _fs(g *gin.RouterGroup) {
g.POST("/move", handles.FsMove)
g.POST("/copy", handles.FsCopy)
g.POST("/remove", handles.FsRemove)
g.PUT("/put", handles.FsPut)
g.PUT("/put", handles.FsStream)
g.PUT("/form", handles.FsForm)
g.POST("/link", middlewares.AuthAdmin, handles.Link)
g.POST("/add_aria2", handles.AddAria2)
}