Files
talk/app.js
T
2016-11-05 08:50:34 -04:00

16 lines
476 B
JavaScript

/* This is the entrypoint for the Talk Platform server. */
// Initialize application framework.
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
app.use(bodyParser.json()); // for parsing application/json
app.use(bodyParser.urlencoded({extended: true})); // for parsing application/x-www-form-urlencoded
app.use('/api/v1', require('./routes/api'));
app.use('/client/', express.static('./dist'));
module.exports = app;