mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-07 22:55:12 +00:00
fix: improve interceptor handling (#3578)
* fix: improve interceptor handling * fix: improve interceptor handling Co-authored-by: Florian Forster <[email protected]>
This commit is contained in:
co-authored by
Florian Forster
parent
20f275f178
commit
06a1b52adf
@@ -46,6 +46,15 @@ const (
|
||||
EndpointDynamicResources = "/resources/dynamic"
|
||||
)
|
||||
|
||||
var (
|
||||
IgnoreInstanceEndpoints = []string{
|
||||
EndpointResources + "/fonts",
|
||||
EndpointResources + "/images",
|
||||
EndpointResources + "/scripts",
|
||||
EndpointResources + "/themes",
|
||||
}
|
||||
)
|
||||
|
||||
func CreateRouter(login *Login, staticDir http.FileSystem, interceptors ...mux.MiddlewareFunc) *mux.Router {
|
||||
router := mux.NewRouter()
|
||||
router.Use(interceptors...)
|
||||
|
||||
Reference in New Issue
Block a user