fix(controllers): Made Controllers library a class

This commit is contained in:
Chris Troutner
2021-07-25 16:49:01 -07:00
parent c46f7357c3
commit 44867f0173
3 changed files with 78 additions and 32 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ async function startServer () {
app.use(passport.session())
// Attach REST API and JSON RPC controllers to the app.
const controllers = require('../src/controllers')
const Controllers = require('../src/controllers')
const controllers = new Controllers()
controllers.attachControllers(app)
// Enable CORS for testing