mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-27 10:01:56 +08:00
Test: auth middleware for WebDAV
This commit is contained in:
@@ -52,6 +52,7 @@ func AuthRequired() gin.HandlerFunc {
|
||||
}
|
||||
|
||||
// WebDAVAuth 验证WebDAV登录及权限
|
||||
// TODO 测试
|
||||
func WebDAVAuth() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
// OPTIONS 请求不需要鉴权,否则Windows10下无法保存文档
|
||||
|
||||
Reference in New Issue
Block a user