Created
November 16, 2020 11:21
-
-
Save dev-aritra/c31070db9f21c4e9a30427609db7820b 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
@Configuration | |
public class StoreRouter { | |
@Bean | |
public RouterFunction<ServerResponse> routes(StoreHandler handler) { | |
return route(POST("/stores").and(accept(MediaType.APPLICATION_JSON)), handler::addStore); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment