mirror of
https://github.com/KevinMidboe/leifsbackend.git
synced 2025-10-29 09:40:20 +00:00
16 lines
398 B
JavaScript
16 lines
398 B
JavaScript
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('./routes')(app);
|
|
|
|
app.get('*', (req, res) => res.status(200).send({
|
|
message: 'Welcome to the beginning of nothingness',
|
|
}));
|
|
|
|
module.exports = app; |