mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: delete objects
This commit is contained in:
@@ -72,7 +72,13 @@ func InitRouter() *gin.Engine {
|
||||
// 创建目录
|
||||
directory.PUT("", controllers.CreateDirectory)
|
||||
// 列出目录下内容
|
||||
directory.GET("", controllers.ListDirectory)
|
||||
directory.GET("*path", controllers.ListDirectory)
|
||||
}
|
||||
|
||||
// 对象,文件和目录的抽象
|
||||
object := auth.Group("object")
|
||||
{
|
||||
object.DELETE("", controllers.Delete)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user