Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions zip-api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ const PORT = process.env.PORT || 8000;


app.get('/', (req, res) => {
res.json({test: 'Yay'});
res.json(Hello World);
});


app.get('/zip/:zipcode', (req, res) => {
// fill in...
res.json(zipdb.byZip[req.params.zipcode])
});


app.get('/city/:cityname', (req, res) => {
// fill in...
res.json(zipdb.byCity[req.params.cityname])
});


Expand Down
30 changes: 15 additions & 15 deletions zip-api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.