mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🧑💻 Kernel serve CalDAV service on path /caldav/ (#13321)
* 🎨 define the interface of CalDAV * 🎨 Adjust iCalendar files directory structure * 🎨 Implement CalDAV Calendar manage functions * 🎨 Implement CalDAV calendar object manage functions * 🎨 improve ETag scheme
This commit is contained in:
parent
f1984cc22d
commit
62d6c13317
7 changed files with 1081 additions and 126 deletions
|
|
@ -305,7 +305,9 @@ func CheckAuth(c *gin.Context) {
|
|||
}
|
||||
|
||||
// WebDAV BasicAuth Authenticate
|
||||
if strings.HasPrefix(c.Request.RequestURI, "/webdav") || strings.HasPrefix(c.Request.RequestURI, "/carddav") {
|
||||
if strings.HasPrefix(c.Request.RequestURI, "/webdav") ||
|
||||
strings.HasPrefix(c.Request.RequestURI, "/caldav") ||
|
||||
strings.HasPrefix(c.Request.RequestURI, "/carddav") {
|
||||
c.Header(BasicAuthHeaderKey, BasicAuthHeaderValue)
|
||||
c.AbortWithStatus(http.StatusUnauthorized)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue