From eb42076ec2cd239270cb13252d2b99ed7dcdf036 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Fri, 13 May 2022 11:00:36 +0200 Subject: [PATCH] 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. --- config/dispatcher/dispatcher.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 0adabb7..f521f99 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -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/"