We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ce8e8c commit dbb4496Copy full SHA for dbb4496
lib/ServerModule.js
@@ -59,14 +59,14 @@ class ServerModule extends AbstractModule {
59
* Starts the HTTP server
60
*/
61
async start () {
62
- // Initialise the root router
+ // Initialise the routers
63
+ this.api.init()
64
this.root.init()
65
// Initialise the API router
66
this.api.expressRouter.get('/', ServerUtils.mapHandler(this.api).bind(this))
67
this.api.addMiddleware(
68
ServerUtils.debugRequestTime
69
)
- this.api.init()
70
// add not-found handlers
71
this.api.expressRouter.use(ServerUtils.apiNotFoundHandler.bind(this))
72
this.root.expressRouter.use(ServerUtils.rootNotFoundHandler.bind(this))
0 commit comments