sae-framework
Version:
Framework to Server Api Engine JS to make micro services
17 lines (12 loc) • 324 B
JavaScript
const App = require('./app');
const auth = require('./auth');
const app = new App();
// Load struct database
require('./db')(app);
// Criar alias hash no app
app.hash = require('./hash');
// Zerar auth apos o termino do route
app.on('route.end', async () => {
auth.clear();
});
module.exports = app;