mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 19:26:42 +08:00
16 lines
476 B
JavaScript
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;
|