tracktracker/back/index.js

17 lines
336 B
JavaScript
Raw Normal View History

2020-01-13 11:20:35 +00:00
const express = require('express');
2020-01-15 23:34:47 +00:00
const network = require('./data/network.json');
2020-01-13 11:20:35 +00:00
const app = express();
const port = 3000;
2020-01-13 11:39:28 +00:00
app.use(express.static('dist'));
2020-01-13 11:20:35 +00:00
app.get('/realtime', (req, res) =>
{
});
2020-01-13 11:20:35 +00:00
app.get('/network', async (req, res) => res.json(network));
2020-01-13 11:20:35 +00:00
2020-01-15 23:34:47 +00:00
app.listen(port, () => console.log(`App listening on port ${port}`));