Created
August 21, 2019 00:28
-
-
Save timjonesdev/fb025437ab01204e061af7b76e13089e 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
@Bean | |
public RouterFunction<ServerResponse> route(TeamHandler teamHandler) { | |
return RouterFunctions | |
.route(RequestPredicates.GET("/teams"), teamHandler::getTeams) | |
.andRoute(RequestPredicates.GET("/teams/watch"), teamHandler::watchTeams) | |
.andRoute(RequestPredicates.GET("/team/{name}"), teamHandler::watchTeam); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment