From ed86245a2d5361762f4056c7194b43bf55436e6e Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Tue, 9 Nov 2021 16:07:41 +0100 Subject: [PATCH] bugfix --- config/dispatcher/dispatcher.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 6df46e5..2423b49 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -5,6 +5,7 @@ defmodule Dispatcher do html: ["text/html", "application/xhtml+html"], json: ["application/json", "application/vnd.api+json"], upload: ["multipart/form-data"], + sparql_json: ["application/sparql-results+json"], any: [ "*/*" ], ] @@ -239,8 +240,8 @@ defmodule Dispatcher do forward conn, path, "http://uri-info/" end - get "/sparql/*path", %{ layer: :api_services, accept: %{ json: true } } do - forward conn, path, "http://db/" + match "/sparql/*path", %{ layer: :api_services, accept: %{ sparql_json: true } } do + forward conn, path, "http://db:8890/sparql/" end