From 178f5c17e655bd0186b473efe6c2853c1a18a524 Mon Sep 17 00:00:00 2001 From: mirdono Date: Fri, 26 Apr 2024 10:18:42 +0200 Subject: [PATCH] refactor: dispatch requests on organization path to resources service Forwarding requests on the organizations path to the cache leads to issues were changes that the user just made are not shown. For example, when adding a related organization the newly added organization would not show up in the list unless the cache was restarted. --- config/dispatcher/dispatcher.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 95ae84b..f303dcc 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -73,7 +73,7 @@ defmodule Dispatcher do end match "/organizations/*path", %{ accept: [:json], layer: :api} do - Proxy.forward conn, path, "http://cache/organizations/" + Proxy.forward conn, path, "http://resource/organizations/" end match "/administrative-units/*path", %{ accept: [:json], layer: :api} do