commit 1892db4afacb02dd6935367adb4c20f0dee0ca94
parent 1bf710c4d6f64bcb05db56bc43755d3f39acc20f
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 25 Nov 2025 20:16:34 +0100
fix /config behavior: no /config if instance does not exist
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -1924,6 +1924,13 @@ url_handler (void *cls,
.response_code = MHD_HTTP_FOUND
},
{
+ .url_prefix = "/config",
+ .method = MHD_HTTP_METHOD_GET,
+ .skip_instance = true,
+ .default_only = true,
+ .handler = &MH_handler_config
+ },
+ {
/* for "normal" instance,s they must exist
before we give the WebUI */
.url_prefix = "/",
@@ -1969,8 +1976,6 @@ url_handler (void *cls,
{
.url_prefix = "/config",
.method = MHD_HTTP_METHOD_GET,
- .skip_instance = true,
- .allow_deleted_instance = true,
.handler = &MH_handler_config
},
/* POST /orders/$ID/abort: */
diff --git a/src/backend/taler-merchant-httpd.h b/src/backend/taler-merchant-httpd.h
@@ -510,7 +510,7 @@ struct TMH_RequestHandler
bool skip_instance;
/**
- * Does this endpoint ONLY apply for the default instance?
+ * Does this endpoint ONLY apply for the admin instance?
*/
bool default_only;