Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
partyRouter,
} = require('@codetanzania/emis-stakeholder');
const {
eventRouter,
eventChangeLogRouter,
} = require('@codetanzania/ewea-event');
const { connect } = require('./database');
debug('Start Mounting Http Routers');
get(`/${apiVersion()}/schemas`, (request, response) => {
const schema = jsonSchema();
response.status(200);
response.json(schema);
});
mount(
authenticationRouter,
predefineRouter,
permissionRouter,
partyRouter,
eventRouter,
eventChangeLogRouter
);
debug('Finish Mounting Http Routers');
const start = done => {
return waterfall([next => connect(next), next => startHttp(next)], done);
};
module.exports = { app, start, connect };
return waterfall([next => connect(next), next => startHttp(next)], done);
};