Created
June 1, 2020 18:11
-
-
Save kauemurakami/f4e4418f5268b76e1a2399943e4202f9 to your computer and use it in GitHub Desktop.
deletando registro
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 deleteUser = async (req: Request, res: Response) => { | |
await Client.deleteById(req.params.id) | |
res.status(200).send({ clients: Client.all() }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment