Skip to content

Commit

Permalink
add status route parallel to status.php
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed May 16, 2022
1 parent d163775 commit 754b146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/http/services/owncloud/ocdav/ocdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (s *svc) Close() error {
}

func (s *svc) Unprotected() []string {
return []string{"/status.php", "/remote.php/dav/public-files/", "/apps/files/", "/index.php/f/", "/index.php/s/"}
return []string{"/status.php", "/status", "/remote.php/dav/public-files/", "/apps/files/", "/index.php/f/", "/index.php/s/"}
}

func (s *svc) Handler() http.Handler {
Expand All @@ -248,7 +248,7 @@ func (s *svc) Handler() http.Handler {
head, r.URL.Path = router.ShiftPath(r.URL.Path)
log.Debug().Str("head", head).Str("tail", r.URL.Path).Msg("http routing")
switch head {
case "status.php":
case "status.php", "status":
s.doStatus(w, r)
return
case "remote.php":
Expand Down

0 comments on commit 754b146

Please sign in to comment.