- Create a module called
birdModule.js
with 2 functions,bawk()
andchirp()
- Using Express Router, in a separate file called
routes.js
add 3 routes:/
which returns the textQUACK!
/chicken
which returns the textBAWK!
/canary
which returns the textCHIRP!
Mount the routes in routes.js
as /birds
Example: Sending an HTTP GET request /birds/chicken
should return BAWK!
Add an additional route that lets the user pass in the name of a bird and haveyour app respond with Don't ruffle my feathers you BIRD!
(where BIRD is the name/string passed in.