diff --git a/owner-apigateway-service/src/main/resources/application.yml b/owner-apigateway-service/src/main/resources/application.yml index 99e5f31..ee1c4db 100644 --- a/owner-apigateway-service/src/main/resources/application.yml +++ b/owner-apigateway-service/src/main/resources/application.yml @@ -10,4 +10,20 @@ eureka: spring: application: - name: owner-apigateway-service \ No newline at end of file + name: owner-apigateway-service + + cloud: + gateway: + routes: + - id: owner-frontend-service + uri: lb://OWNER-FRONTEND-SERVICE + predicates: + - Path=/owner-frontend-service/** + filters: + - RewritePath=/owner-frontend-service/(?.*),/$\{segment} + - id: order-service + uri: lb://ORDER-SERVCIE + predicates: + - Path=/order-service/** + filters: + - RewritePath=/order-service/(?.*),/$\{segment} \ No newline at end of file