Commit d2f69e77 authored by Matthew Fennell's avatar Matthew Fennell

Add /medication endpoint, which currently returns dummy data

parent 1d1088ef
......@@ -3,5 +3,9 @@ const app = express()
const port = 8000
app.get('/', (req, res) => res.send('Hello World!'))
app.get('/medication', (req, res) => res.json([
{name: 'Atorvastatin', dose: '100mg', consumption: '10mg x 1 daily oral. 4 weeks.'},
{name: 'Atenolol', dose: '50mg', consumption: '50mg x 1 daily oral. 7 days.'},
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment