From 3b271af327b4b4c30916d697196a06551188cf8e Mon Sep 17 00:00:00 2001 From: Amadeusz Nowak Date: Mon, 13 May 2024 00:23:19 +0200 Subject: [PATCH] (#143) add endpoint for GetPost in ntrada-async.yml and ntrada-async.docker.yml files --- .../src/MiniSpace.APIGateway/ntrada-async.docker.yml | 5 +++++ .../src/MiniSpace.APIGateway/ntrada-async.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.docker.yml b/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.docker.yml index d5102ddea..df3440dbc 100644 --- a/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.docker.yml +++ b/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.docker.yml @@ -562,6 +562,11 @@ modules: - state:{state} auth: true + - upstream: /{postId} + method: GET + use: downstream + downstream: posts-service/posts/{postId} + - upstream: / method: GET use: downstream diff --git a/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.yml b/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.yml index 8475d0118..13df63d91 100644 --- a/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.yml +++ b/MiniSpace.APIGateway/src/MiniSpace.APIGateway/ntrada-async.yml @@ -579,6 +579,11 @@ modules: - state:{state} auth: true + - upstream: /{postId} + method: GET + use: downstream + downstream: posts-service/posts/{postId} + - upstream: / method: GET use: downstream