13 lines
227 B
JavaScript
13 lines
227 B
JavaScript
import bodyParser from 'body-parser';
|
|
import express from 'express';
|
|
|
|
import eventRoutes from './routes/events.js';
|
|
|
|
const app = express();
|
|
|
|
app.use(bodyParser.json());
|
|
|
|
app.use(eventRoutes);
|
|
|
|
app.listen(process.env.WEB_PORT);
|