integrate API

This commit is contained in:
Michael Fatemi 2021-04-10 11:39:25 -04:00
parent b56f5afe37
commit b09bb33b95

View File

@ -1,4 +1,5 @@
import * as express from 'express'; import * as express from 'express';
import * as api from './api';
const app = express(); const app = express();
@ -6,4 +7,6 @@ app.get('/', (req, res) => {
res.send('Hello!'); res.send('Hello!');
}); });
app.use('/api', api.router);
app.listen(8080, () => void console.log('Listening on port 8080')); app.listen(8080, () => void console.log('Listening on port 8080'));