Created
June 1, 2020 18:09
-
-
Save kauemurakami/e1626a5be281dc94d5cbf61c71f9e2e9 to your computer and use it in GitHub Desktop.
recuperando registro por id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getUser = async (req: Request, res: Response) => { | |
res.status(200).send({ client: await Client.where('id', req.params.id).first() }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment