mirror of
https://github.com/documize/community.git
synced 2025-07-18 20:59:43 +02:00
Fix middleware for favicon/sitemap
This commit is contained in:
parent
4c031fe7e4
commit
e0e3f0c141
2 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,7 @@ func (m *middleware) preAuthorizeStaticAssets(rt *env.Runtime, r *http.Request)
|
|||
strings.ToLower(r.URL.Path) == "/validate" ||
|
||||
strings.ToLower(r.URL.Path) == "/favicon.ico" ||
|
||||
strings.ToLower(r.URL.Path) == "/robots.txt" ||
|
||||
strings.ToLower(r.URL.Path) == "/sitemap.xml" ||
|
||||
strings.ToLower(r.URL.Path) == "/version" ||
|
||||
strings.HasPrefix(strings.ToLower(r.URL.Path), "/api/public/") ||
|
||||
((rt.Flags.SiteMode == env.SiteModeSetup) && (strings.ToLower(r.URL.Path) == "/api/setup")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue