From dd3be1f4bc5a1fe15a7bcc84087ae683381363dd Mon Sep 17 00:00:00 2001 From: Syphax Date: Wed, 4 Sep 2024 14:21:16 +0200 Subject: [PATCH] set the portal config id as the the api endpoint host --- controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/home_controller.rb b/controllers/home_controller.rb index 140d4522..29aa851c 100644 --- a/controllers/home_controller.rb +++ b/controllers/home_controller.rb @@ -36,7 +36,7 @@ class HomeController < ApplicationController federated_portals = config.federated_portals federated_portals. transform_values! { |v| v.delete(:apikey) ; v } config.init_federated_portals_settings(federated_portals) - + config.id = RDF::URI.new(LinkedData.settings.id_url_prefix) config.class.link_to *routes_hash.map { |key, url| LinkedData::Hypermedia::Link.new(key, url, context[key]) } reply config