aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-02-06 09:57:06 +0100
committerChristian Grothoff <christian@grothoff.org>2024-02-06 09:57:06 +0100
commit765fa0cb91c202060010aebb0904630d780f1849 (patch)
tree840a99576368b814907326fca842e326f3b342ab /src
parente51192f0e708670b19acfb3fc1c969f1702a334c (diff)
fix 404 issue in taler-harness run-integrationtests merchant-instances-urls
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index f1668389..608a00a6 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -1349,10 +1349,22 @@ url_handler (void *cls,
};
static struct TMH_RequestHandler public_handlers[] = {
{
+ /* for "default" instance, it does not even
+ have to exist before we give the WebUI */
.url_prefix = "/",
.method = MHD_HTTP_METHOD_GET,
.mime_type = "text/html",
.skip_instance = true,
+ .default_only = true,
+ .handler = &spa_redirect,
+ .response_code = MHD_HTTP_FOUND
+ },
+ {
+ /* for "normal" instance,s they must exist
+ before we give the WebUI */
+ .url_prefix = "/",
+ .method = MHD_HTTP_METHOD_GET,
+ .mime_type = "text/html",
.handler = &spa_redirect,
.response_code = MHD_HTTP_FOUND
},