From c94b7fa19d8cf02dad7e9183b450365ecd83f55a Mon Sep 17 00:00:00 2001
From: Fabian Steeg
Date: Fri, 13 Sep 2024 16:49:31 +0200
Subject: [PATCH] Set up separate config values for host.main and
host.reconcile
---
app/controllers/HomeController.java | 4 ++--
app/controllers/Reconcile.java | 4 ++--
app/views/preview.scala.html | 4 ++--
app/views/reconcile.scala.html | 12 ++++++------
conf/application.conf | 5 ++++-
5 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/app/controllers/HomeController.java b/app/controllers/HomeController.java
index 911afcc..52f2d42 100644
--- a/app/controllers/HomeController.java
+++ b/app/controllers/HomeController.java
@@ -467,8 +467,8 @@ static String returnAsJson(String q, SearchResponse queryResponse) {
List
+ curl --data 'queries={"q1":{"query":"Twain, Mark"}}' @controllers.HomeController.configNested("host", "reconcile")
Suggest-API (spec)
@@ -82,6 +82,6 @@ Data-extension-API
@desc("Property-proposals (spec)", routes.Reconcile.properties("","Work",""))
@desc("Extend: GET (spec)", routes.Reconcile.main(extend="{\"ids\":[\"1081942517\",\"4791358-7\"],\"properties\":[{\"id\":\"preferredName\"},{\"id\":\"firstAuthor\"}]}"))
Extend: POST
- curl --data 'extend={"ids":["1081942517","4791358-7"],"properties":[{"id":"preferredName"},{"id":"firstAuthor"}]}' @controllers.HomeController.config("host")
+ curl --data 'extend={"ids":["1081942517","4791358-7"],"properties":[{"id":"preferredName"},{"id":"firstAuthor"}]}' @controllers.HomeController.configNested("host", "reconcile")
}
diff --git a/conf/application.conf b/conf/application.conf
index e251758..3f38570 100644
--- a/conf/application.conf
+++ b/conf/application.conf
@@ -1,7 +1,10 @@
# This is the main configuration file for the application.
# https://www.playframework.com/documentation/latest/ConfigFile
-host : "https://reconcile.lobid.org"
+host {
+ main: "https://lobid.org"
+ reconcile: "https://reconcile.gnd.network"
+}
dontShowOnMainPage: ["1012979-0"]