-
Notifications
You must be signed in to change notification settings - Fork 14
Ridhwan Ramadhany #2
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
base: master
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,20 @@ | |||
| require('dotenv').config(); | |||
| const express = require('express'); | |||
| const todoRouter = require('./router'); | |||
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.
kenapa ga panggil index.js aja disini?
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.
const routes = require('./router);
| app.get('/', (req, res) => { | ||
| res.send('Hello World'); | ||
| }) | ||
| app.use('/', 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.
disini ntar tinggal use
| app.use('/', usersRouter); | |
| app.use(routes); |
| console.log(req.userLogin.Todos, req.params.id); | ||
| for(let i of req.userLogin.Todos) | ||
| { | ||
| if (+req.params.id == i.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.
ini di looping kira2 buat apa yah?
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.
cek masuk localhost/todos/:id yang id todos nya gaada di user jadi kalo gaada gabisa dilihat
| msg: 'You must input a date' | ||
| }, | ||
| isAfter: { | ||
| args: "2020-08-03", |
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.
ini ga dinamis yah date nya ?
kalau pakai new Date() ?
No description provided.