Created
May 15, 2020 20:11
-
-
Save loopDelicious/73ad1d1a6afcc25ae0d99f3382888f60 to your computer and use it in GitHub Desktop.
Create a `/spacetasks` route using the `GET` method to retrieve a list of chores for the space station
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get("/spacetasks", (req, res, next) => { | |
res.json([ | |
"wash the spaceship", | |
"clean the space kitchen", | |
"look at the stars", | |
"repair my space suit" | |
]) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment