fix(local): return ObjectNotFound if can't find file

This commit is contained in:
Noah Hsu
2022-08-19 11:02:00 +08:00
parent 38db3508a5
commit e9927806d4
3 changed files with 13 additions and 5 deletions

View File

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