Created
June 29, 2022 02:56
-
-
Save IvsonEmidio/3cb640b19d9fc280e7fdd653eed3b52c to your computer and use it in GitHub Desktop.
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
import { Application } from "express"; | |
import { UserController } from "../controllers/UserController"; | |
import { validatePost } from "../middlewares/validators/userValidator"; | |
export default function userRoutes(app: Application) { | |
const controller = new UserController(); | |
app.post( | |
"/user", | |
validatePost(), | |
controller.create.bind(controller) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment