mirror of
https://github.com/pikami/cosmium.git
synced 2026-11-01 05:55:36 +00:00
Implement state export endpoint
This commit is contained in:
1 parent
16f41a5479
commit
332be181ef
4 files changed
+25
-1
No files matched your search
@@ -13,7 +13,9 @@ import (
|
||||
func Authentication() gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
requestUrl := c.Request.URL.String()
|
||||
if config.Config.DisableAuth || strings.HasPrefix(requestUrl, "/_explorer") {
|
||||
if config.Config.DisableAuth ||
|
||||
strings.HasPrefix(requestUrl, "/_explorer") ||
|
||||
strings.HasPrefix(requestUrl, "/cosmium") {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user