-
Notifications
You must be signed in to change notification settings - Fork 57
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
BCN 0419 -Jesus #19
base: master
Are you sure you want to change the base?
BCN 0419 -Jesus #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good! Very clean
mongoose-movies/app.js
Outdated
app.use(express.static(path.join(__dirname, 'public'))); | ||
|
||
app.use('/', router); | ||
//app.use('/users', usersRouter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can deleted, don't leave code commented
router.post('/:_id', (req, res, next) => { | ||
const { _id } = req.params; | ||
const {name, occupation, catchPhrase} = req.body; | ||
console.log('IDDDDDDDDDDDD',{ _id }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jaja great console.log
s but remember to delete them
@@ -0,0 +1,5 @@ | |||
<h2>Show celebrity</h2> | |||
|
|||
<p>{{celebrity.name}}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation!
Only celebrities done.
Styling and movies left
I need to practice more about this I still have doubts about some concepts