func NewRouter(daemon *daemon.Daemon) dkrouter.Router {
	r := &router{
		daemon: daemon,
	}
	r.initRoutes()
	return r
}
// NewRouter initializes a local router with a new daemon.
NewRouter initializes a local router with a new daemon.
// NewRouter initializes a local router with a new daemon .
func NewRouter(daemon *daemon.Daemon) dkrouter.Router {
	r := &router{
		daemon: daemon,
	}
	r.initRoutes()
	return r
}
func NewRouter ( daemon * daemon . Daemon ) dkrouter . Router { r := & router { daemon : daemon , } r . initRoutes ( ) return r }
NewRouter initializes a local router with a new daemon.
NewRouter initializes a local router with a new daemon .