Skip to content

Instantly share code, notes, and snippets.

@timjonesdev
Created August 21, 2019 00:01
Show Gist options
  • Select an option

  • Save timjonesdev/43b55db3ac66a9bdbc74acaaf76a8696 to your computer and use it in GitHub Desktop.

Select an option

Save timjonesdev/43b55db3ac66a9bdbc74acaaf76a8696 to your computer and use it in GitHub Desktop.
The first router function
@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