How to use @lykmapipo/express-common - 2 common examples

To help you get started, we’ve selected a few @lykmapipo/express-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CodeTanzania / ewea / src / http.js View on Github external
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 };
github CodeTanzania / ewea / src / http.js View on Github external
  return waterfall([next => connect(next), next => startHttp(next)], done);
};

@lykmapipo/express-common

minimal express app configuration

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular @lykmapipo/express-common functions