salix/print/server.js

19 lines
359 B
JavaScript

const database = require('./lib/database');
const smtp = require('./lib/smtp');
module.exports = app => {
global.appPath = __dirname;
process.env.OPENSSL_CONF = '/etc/ssl/';
// Init database instance
database.init();
// Init SMTP Instance
smtp.init();
require('./lib/router')(app);
require('./lib/errorHandler')(app);
};