From fb2fa6242ff9c2108cb6c94f46b5532f3b65c867 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Wed, 10 Nov 2021 14:51:56 +0100 Subject: [PATCH] fix dispatcher --- config/dispatcher/dispatcher.ex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 2423b49..063f3f6 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -240,10 +240,6 @@ defmodule Dispatcher do forward conn, path, "http://uri-info/" end - match "/sparql/*path", %{ layer: :api_services, accept: %{ sparql_json: true } } do - forward conn, path, "http://db:8890/sparql/" - end - ############################################################### # frontend layer @@ -269,6 +265,13 @@ defmodule Dispatcher do Proxy.forward conn, [], "http://frontend/index.html" end + ############################################################### + # sparql endpoint + ############################################################### + + match "/sparql/*path", %{ layer: :api_services, accept: %{ sparql_json: true } } do + forward conn, path, "http://db:8890/sparql/" + end ############################################################### # errors