From eb99aab77bf47cb1a93105cd48976421cf502060 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Mon, 20 Feb 2023 17:31:43 +0100 Subject: [PATCH] Dispatch files to resource directly --- 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 1a8eb1b..7f5dbb7 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -220,7 +220,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/" @@ -242,7 +242,7 @@ defmodule Dispatcher do ############################################################### match "/search/*path", %{ accept: %{ json: true }, layer: :api_services} do - IO.puts("hey") + IO.puts("hey") Proxy.forward conn, path, "http://search/" end @@ -303,7 +303,7 @@ defmodule Dispatcher do end get "/files/*path" , %{ layer: :api_services, accept: %{ json: true } } do - Proxy.forward conn, path, "http://cache/files/" + Proxy.forward conn, path, "http://resource/files/" end #################################################################