diff --git a/pkg/api/routes.go b/pkg/api/routes.go index 6510c6f5..1ed03858 100644 --- a/pkg/api/routes.go +++ b/pkg/api/routes.go @@ -133,10 +133,12 @@ func (rh *RouteHandler) SetupRoutes() { ext.SetupUserPreferencesRoutes(rh.c.Config, prefixedExtensionsRouter, rh.c.StoreController, rh.c.RepoDB, rh.c.CveInfo, rh.c.Log) - ext.SetupUIRoutes(rh.c.Config, rh.c.Router, rh.c.StoreController, rh.c.Log) ext.SetupMetricsRoutes(rh.c.Config, rh.c.Router, rh.c.StoreController, AuthHandler(rh.c), rh.c.Log) gqlPlayground.SetupGQLPlaygroundRoutes(rh.c.Config, prefixedRouter, rh.c.StoreController, rh.c.Log) + + // last should always be UI because it will setup a http.FileServer and paths will be resolved by this FileServer. + ext.SetupUIRoutes(rh.c.Config, rh.c.Router, rh.c.StoreController, rh.c.Log) } } }