diff --git a/src/index.ts b/src/index.ts index 9e4608d..8caa8eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ import * as express from 'express'; +import * as api from './api'; const app = express(); @@ -6,4 +7,6 @@ app.get('/', (req, res) => { res.send('Hello!'); }); +app.use('/api', api.router); + app.listen(8080, () => void console.log('Listening on port 8080'));