Created
October 12, 2021 16:44
-
-
Save radzserg/e49fada80d992f414374eefa1d7074ac 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
export default function configureRouter(app: core.Express, diContainer: IDIContainer) { | |
const usersController = diContainer.get(UsersController); | |
app.route('/users') | |
.get(usersController.actionIndex.bind(usersController)) | |
.post(usersController.actionCreate.bind(usersController)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment