Test: auth middleware for WebDAV

This commit is contained in:
HFO4
2019-12-23 11:22:46 +08:00
parent cf90ab5a9a
commit fd7b6e33c8
4 changed files with 114 additions and 4 deletions

View File

@ -52,6 +52,7 @@ func AuthRequired() gin.HandlerFunc {
}
// WebDAVAuth 验证WebDAV登录及权限
// TODO 测试
func WebDAVAuth() gin.HandlerFunc {
return func(c *gin.Context) {
// OPTIONS 请求不需要鉴权否则Windows10下无法保存文档