mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-21 12:10:17 -04:00
integrate API
This commit is contained in:
parent
b56f5afe37
commit
b09bb33b95
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user