upd(cmd/sam): register pprof after main routes
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/SentimensRG/sigctx"
|
||||
"github.com/crusttech/crust/auth"
|
||||
"github.com/crusttech/crust/rbac"
|
||||
"github.com/crusttech/crust/sam/rest"
|
||||
"github.com/crusttech/crust/sam/websocket"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/SentimensRG/sigctx"
|
||||
"github.com/titpetric/factory"
|
||||
|
||||
"log"
|
||||
|
||||
@@ -26,8 +26,6 @@ func MountRoutes(r chi.Router, opts *RouteOptions, mountRoutes ...func(r chi.Rou
|
||||
r.Use(middleware.Logger)
|
||||
}
|
||||
|
||||
r.Mount("/debug", middleware.Profiler())
|
||||
|
||||
for _, mount := range mountRoutes {
|
||||
mount(r)
|
||||
}
|
||||
@@ -47,4 +45,6 @@ func MountRoutes(r chi.Router, opts *RouteOptions, mountRoutes ...func(r chi.Rou
|
||||
}
|
||||
}
|
||||
printRoutes(r, "", "")
|
||||
|
||||
r.Mount("/debug", middleware.Profiler())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user