mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
API extensions: Route listerens (#887)
This commit is contained in:
committed by
Reed Allman
parent
7810b3cb9b
commit
6393cf6777
@@ -111,6 +111,7 @@ type Server struct {
|
||||
certKey string
|
||||
certAuthority string
|
||||
appListeners *appListeners
|
||||
routeListeners *routeListeners
|
||||
rootMiddlewares []fnext.Middleware
|
||||
apiMiddlewares []fnext.Middleware
|
||||
promExporter *prometheus.Exporter
|
||||
@@ -516,7 +517,9 @@ func New(ctx context.Context, opts ...ServerOption) *Server {
|
||||
s.bindHandlers(ctx)
|
||||
|
||||
s.appListeners = new(appListeners)
|
||||
s.datastore = fnext.NewDatastore(s.datastore, s.appListeners)
|
||||
s.routeListeners = new(routeListeners)
|
||||
|
||||
s.datastore = fnext.NewDatastore(s.datastore, s.appListeners, s.routeListeners)
|
||||
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user