Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Generate API url for get a single user and dog #1

Closed
coderdiaz opened this issue Nov 9, 2018 · 3 comments
Closed

Generate API url for get a single user and dog #1

coderdiaz opened this issue Nov 9, 2018 · 3 comments

Comments

@coderdiaz
Copy link
Owner

No description provided.

@Miguel-Villeda-R
Copy link

Miguel-Villeda-R commented Nov 9, 2018

creacion de otro get con ruta especifica
archivo dog.js inclui esto:

router.get('/user',(req,res,next) => {
    return res.status(200).json({data:[]});
});

arcivo user.js inclui esto:

router.get('/dog',(req,res,next) => {
    return res.status(200).json({data:[]});
});

@UrielCode
Copy link

UrielCode commented Nov 9, 2018

//MÉTODO GET

//DOG

router.get('/', (req, res, next)=>{

return res.status(200).json({data:[]});

});

router.get('/user', (req, res, next)=>{

return res.status(200).json({data:[]});

});

//USER
router.get('/', (req, res, next)=>{

return res.status(200).json({data:[]});

});

router.get('/dog', (req, res, next)=>{

return res.status(200).json({data:[]});

});

@erikmatiuss
Copy link

erikmatiuss commented Nov 9, 2018

Creación de GET en el archivo de User con la ruta "Dog"; y en el archivo Dog con la ruta User:

router.get('/dog',(req,res,next) => {
    return res.status (200).json({data: []});
});

router.get('/user',(req,res,next) => {
    return res.status (200).json({data: []});
});

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

No branches or pull requests

4 participants