Skip to content
Snippets Groups Projects
Commit 27c423de authored by Martin Weise's avatar Martin Weise
Browse files

routes

parent b8d430e1
No related branches found
No related tags found
No related merge requests found
...@@ -11,21 +11,21 @@ public class GatewayConfig { ...@@ -11,21 +11,21 @@ public class GatewayConfig {
@Bean @Bean
public RouteLocator routes(RouteLocatorBuilder builder) { public RouteLocator routes(RouteLocatorBuilder builder) {
return builder.routes() return builder.routes()
.route("database-managing-service", r -> r.path("/database/**") .route("fda-container-service", r -> r.path("/api/container/**")
.and() .and()
.method("POST","GET") .method("POST","GET","PUT","DELETE")
.and() .and()
.uri("lb://FDA-Database-Managing")) .uri("lb://fda-container-service"))
.route("table-service", r -> r.path("/table/**") .route("fda-database-service", r -> r.path("/api/database/**")
.and() .and()
.method("POST","GET") .method("POST","GET","PUT","DELETE")
.and() .and()
.uri("lb://FDA-Table-Service")) .uri("lb://fda-database-service"))
.route("query-service", r -> r.path("/query/executeQuery") .route("fda-table-service", r -> r.path("/api/database/**/table/**")
.and() .and()
.method("POST") .method("POST","GET","PUT","DELETE")
.and() .and()
.uri("lb://FDA-Query-Service")) .uri("lb://fda-table-service"))
.build(); .build();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment