Skip to content

Instantly share code, notes, and snippets.

@kauemurakami
Created June 1, 2020 18:09
Show Gist options
  • Save kauemurakami/e1626a5be281dc94d5cbf61c71f9e2e9 to your computer and use it in GitHub Desktop.
Save kauemurakami/e1626a5be281dc94d5cbf61c71f9e2e9 to your computer and use it in GitHub Desktop.
recuperando registro por id
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