Forward some calls to resource directly

There seems to be an issue with mu-cache, we sometimes need to restart
the cache to see results in the "Bedinaren" page. Otherwise it shows
empty results. As a workaround while it's investigated, we talk directly
to mu-cl-resource instead.
This commit is contained in:
Claire Lovisa
2022-05-13 11:00:36 +02:00
parent 83c0a300c0
commit eb42076ec2

View File

@@ -73,11 +73,11 @@ defmodule Dispatcher do
end
match "/worship-administrative-units/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/worship-administrative-units/"
Proxy.forward conn, path, "http://resource/worship-administrative-units/"
end
match "/worship-services/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/worship-services/"
Proxy.forward conn, path, "http://resource/worship-services/"
end
match "/recognized-worship-types/*path", %{ accept: [:json], layer: :api} do
@@ -204,7 +204,7 @@ defmodule Dispatcher do
###############
match "/accounts", %{ accept: [:json], layer: :api} do
Proxy.forward conn, [], "http://resource/accounts/"
Proxy.forward conn, [], "http://resource/accounts/"
end
match "/accounts/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://accountdetail/accounts/"