diff --git a/web-server/src/app.js b/web-server/src/app.js index b780c29..63a70ef 100644 --- a/web-server/src/app.js +++ b/web-server/src/app.js @@ -1,21 +1,28 @@ const express = require('express') - const app = express() app.get('', (req, res) => { - res.send('Hello express!') + res.send('

Weather

') }) app.get('/help', (req, res) => { - res.send('Help page') + res.send([{ + name: 'Jason', + age: 38 + }, { + name: 'Sarah' + }]) }) app.get('/about', (req, res) => { - res.send('About') + res.send('

About

') }) app.get('/weather', (req, res) => { - res.send('Your weather') + res.send({ + location: 'Calgary', + forecast: 'It\'s snowing. It\'s really gross out.' + }) }) app.listen(4200, () => {