summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-19 19:27:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-19 19:27:28 +0200
commitd6f28270094db1ffa4e5526ce556e7fc23e8e9b9 (patch)
treec4c7d3e7bf633535fd6db3241917caafc1533cfb /src/backend/taler-merchant-httpd.c
parentc4ffdfa3f2c736e4324f11df7a35340f0e64e9a9 (diff)
downloadmerchant-d6f28270094db1ffa4e5526ce556e7fc23e8e9b9.tar.gz
merchant-d6f28270094db1ffa4e5526ce556e7fc23e8e9b9.tar.bz2
merchant-d6f28270094db1ffa4e5526ce556e7fc23e8e9b9.zip
implement #6460: serving of static files
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r--src/backend/taler-merchant-httpd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index 54b8d163..5c6924c2 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -63,6 +63,7 @@
#include "taler-merchant-httpd_post-orders-ID-refund.h"
#include "taler-merchant-httpd_post-tips-ID-pickup.h"
#include "taler-merchant-httpd_reserves.h"
+#include "taler-merchant-httpd_statics.h"
#include "taler-merchant-httpd_templating.h"
/**
@@ -1147,6 +1148,13 @@ url_handler (void *cls,
to set a conservative bound for sane wallets */
.max_upload = 1024 * 1024
},
+ /* GET /static/ *: */
+ {
+ .url_prefix = "/static/",
+ .method = MHD_HTTP_METHOD_GET,
+ .have_id_segment = true,
+ .handler = &TMH_return_static
+ },
{
NULL
}
@@ -1579,6 +1587,7 @@ run (void *cls,
"FORCE_AUDIT"))
TMH_force_audit = GNUNET_YES;
TMH_templating_init ();
+ TMH_statics_init ();
if (GNUNET_SYSERR ==
TMH_EXCHANGES_init (config))
{