This commit is contained in:
Nordine Bittich
2021-11-09 16:07:41 +01:00
parent 567740ae86
commit ed86245a2d

View File

@@ -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