mirror of
https://github.com/volatiletech/authboss.git
synced 2026-06-19 23:00:27 +02:00
Make log output cooler.
This commit is contained in:
@@ -19,7 +19,7 @@ func NewRouter() http.Handler {
|
||||
|
||||
for name, mod := range modules {
|
||||
for route, handler := range mod.Routes() {
|
||||
fmt.Fprintf(Cfg.LogWriter, "%-10s Register Route: %s\n", "["+name+"]", route)
|
||||
fmt.Fprintf(Cfg.LogWriter, "%-10s Register Route: %s\n", "["+name+"]", path.Join(Cfg.MountPath, route))
|
||||
mux.Handle(path.Join(Cfg.MountPath, route), contextRoute{handler})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user