Created
August 21, 2019 00:01
-
-
Save timjonesdev/43b55db3ac66a9bdbc74acaaf76a8696 to your computer and use it in GitHub Desktop.
The first router function
This file contains hidden or 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
| @Bean | |
| public RouterFunction<ServerResponse> route(TeamHandler teamHandler) { | |
| return RouterFunctions | |
| .route(RequestPredicates.GET("/teams"), teamHandler::getTeams); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment