mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
await async
This commit is contained in:
@@ -33,6 +33,10 @@ app.post('/todos', req => {
|
||||
store.todos = req.body;
|
||||
});
|
||||
|
||||
app.get('/hello', (req, res) => {
|
||||
res.send('world');
|
||||
});
|
||||
|
||||
app.listen(process.env.NODE_ENV === 'production' ? undefined : 3000, () => {
|
||||
console.log('Listening at http://localhost:3000');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user