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