Created
October 18, 2021 13:28
-
-
Save tsh-code/b9b9f3d126b659b2b41ae3ba3218d587 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 * as express from "express"; | |
import { Action } from "../../../shared/http/types"; | |
import { createUserActionValidation } from "./actions/create-users.action"; | |
export interface UsersRoutingDependencies { | |
createUserAction: Action; | |
} | |
export const usersRouting = (actions: UsersRoutingDependencies) => { | |
const router = express.Router(); | |
router.post("/create", [createUserActionValidation], actions.createUserAction.invoke.bind(actions.createUserAction)); | |
return router; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment