diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 6074fc6..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,6 +240,10 @@ 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 diff --git a/docker-compose.yml b/docker-compose.yml index 71b114d..57e3bf1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -143,7 +143,7 @@ services: SERVER_PORT: "80" SPARQL_ENDPOINT: "http://db:8890/sparql" LOGGING_LEVEL: "INFO" - DEFAULT_GRAPH: "http://mu.semte.ch/graphs/contacthub/141d9d6b-54af-4d17-b313-8d1c30bc3f5b/ChAdmin" + DEFAULT_GRAPH: "http://mu.semte.ch/graphs/privacy-centric-graph" SESSION_GRAPH: "http://mu.semte.ch/graphs/sessions" labels: - "logging=true"