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.
This commit is contained in:
mirdono
2024-04-26 10:18:42 +02:00
committed by Alexander van den Berghe
parent d28cb221da
commit 178f5c17e6

View File

@@ -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