This commit is contained in:
Jackk Goh
2018-03-15 16:11:38 +08:00
commit c1f1ada934
9 changed files with 115 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const express = require('express');
const logger = require('morgan');
const bodyParser = require('body-parser');
const app = express();
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
// Require our routes into the application.
require('./server/routes')(app);
app.get('*', (req, res) => res.status(200).send({
message: 'Welcome to the beginning of nothingness.',
}));
module.exports = app;