Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home work #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

home work #6

wants to merge 3 commits into from

Conversation

amfueger
Copy link

@amfueger amfueger commented Oct 9, 2018

.

server.js Outdated

//Index route - missions
app.get('/missions', (req, res) => {
res.send(MarsMissions);
Copy link
Contributor

@reubenayres reubenayres Oct 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be rendering (res.render()) a template here intead of using res.send()
it looks like you started making one, but it's in a folder called missions instead of a folder called views which is where it should be.

server.js Outdated

//show route - missions
app.get('/missions/:id', (req, res) => {
res.render('show.ejs', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to get this to work, your views need to be in a directory callled views instead of the missions directory they are currently in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants