package click.kamil.maven.api;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerResponse;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;

@Configuration
public class ReactiveOrderApi {

    @Bean
    public RouterFunction<ServerResponse> orderRoutes() {
        return route().POST("/reactive/order", request -> ServerResponse.ok().build()).build();
    }
}
