salix/print/server.js

15 lines
272 B
JavaScript

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