merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 765fa0cb91c202060010aebb0904630d780f1849
parent e51192f0e708670b19acfb3fc1c969f1702a334c
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  6 Feb 2024 09:57:06 +0100

fix 404 issue in taler-harness run-integrationtests merchant-instances-urls

Diffstat:
Msrc/backend/taler-merchant-httpd.c | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git 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 },