feat(webdav): add read-only option (#1629)

This commit is contained in:
WeidiDeng
2023-02-07 19:43:28 +08:00
committed by GitHub
parent ffbafca994
commit a93ea2cfa0
4 changed files with 43 additions and 0 deletions

View File

@@ -699,6 +699,8 @@ func InitMasterRouter() *gin.Engine {
webdav.POST("accounts", controllers.CreateWebDAVAccounts)
// 删除账号
webdav.DELETE("accounts/:id", controllers.DeleteWebDAVAccounts)
// 更新账号可读性
webdav.PATCH("accounts", controllers.UpdateWebDAVAccountsReadonly)
}
}