From ef42103bd7c47ed942653f280414e449c4d4978d Mon Sep 17 00:00:00 2001 From: Philipp Borucki Date: Fri, 3 Nov 2023 14:58:58 +0100 Subject: [PATCH] refactor(http-proxy-service): update contexts paths for services in proxy config --- .../config/proxyConfig.yaml | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/http-proxy-service/config/proxyConfig.yaml b/src/http-proxy-service/config/proxyConfig.yaml index 61302b5f..42115578 100644 --- a/src/http-proxy-service/config/proxyConfig.yaml +++ b/src/http-proxy-service/config/proxyConfig.yaml @@ -2,17 +2,20 @@ proxy: listenAddress: localhost:8080 proxyRoutes: - name: User Service - context: /users - target: http://localhost:3001 - - name: Shoppinglist Service - context: /shoppinglists - target: http://localhost:3002 + context: /api/v1/user + target: http://localhost:3001/api/v1/user + - name: Shoppinglist Service (Lists) + context: /api/v1/shoppinglist (Lists) + target: http://localhost:3002/api/v1/shoppinglist + - name: Shoppinglist Service (Entries) + context: /api/v1/shoppinglistentries + target: http://localhost:3002/api/v1/shoppinglistentries - name: Product Service - context: /products - target: http://localhost:3003 + context: /api/v1/product + target: http://localhost:3003/api/v1/product - name: Data Processing Service - context: /processing - target: http://localhost:3004 + context: /api/v1//processing + target: http://localhost:3004/api/v1/processing - name: Web Service - context: / + context: target: http://localhost:3000 \ No newline at end of file