diff --git a/options.go b/options.go index 8c1c7938..6cdee2be 100644 --- a/options.go +++ b/options.go @@ -195,6 +195,15 @@ func Runtime(r runtime.Runtime) Option { } } +// Router sets the router +func Router(r router.Router) Option { + return func(o *Options) { + o.Router = r + // Update client + o.Client.Init(client.Router(r)) + } +} + // Convenience options // Address sets the address of the server