added promises exercise

This commit is contained in:
Märt Kalmo
2017-04-08 09:17:59 +03:00
parent e488ae6eec
commit 002e0c079f
2 changed files with 32 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
const express = require('express');
const app = express();
app.use(express.static('./'));
app.get('/api/contacts', getContacts);
app.get('/api/contacts/:id', getContact);