await async

This commit is contained in:
Ken
2019-02-15 20:13:29 -08:00
parent 4b0492a81a
commit 988aea6c1d
7 changed files with 128 additions and 8 deletions

View File

@@ -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');
});