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

Josep Razaqi #46

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

razaqisama
Copy link

@razaqisama razaqisama changed the title Baru bagian add dan post, tapi belum dengan validasi dan error Josep Razaqi Nov 23, 2020
class Controller {
static async getTodos(req, res, next) {
try {
const todos = await Todo.findAll({where: {UserId: req.loggedIn.id}});
Copy link
Contributor

Choose a reason for hiding this comment

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

good

description: req.body.description,
status: req.body.status,
due_date: req.body.due_date,
UserId: req.loggedIn.id
Copy link
Contributor

Choose a reason for hiding this comment

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

oke dapet dari authentication ya

README.md Outdated
# fancy-todo
https://documenter.getpostman.com/view/13597012/TVewXiUa
Copy link
Contributor

Choose a reason for hiding this comment

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

oke api docnya lumayan

@@ -0,0 +1,10 @@
module.exports = (err, req, res, next) =>{
Copy link
Contributor

Choose a reason for hiding this comment

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

error handler dilengkapin lagi yaa



route.use('/:id', authorization);
route.get("/:id", TodoController.findOneTodo);
Copy link
Contributor

Choose a reason for hiding this comment

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

sebetulnya untuk get by id ga perlu lewat authorization yaa

@@ -0,0 +1,10 @@
module.exports = (err, req, res, next) =>{
Copy link
Contributor

Choose a reason for hiding this comment

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

error handlernya dilengkapin lagi yaa

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