From d6f28270094db1ffa4e5526ce556e7fc23e8e9b9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 19 Aug 2020 19:27:28 +0200 Subject: implement #6460: serving of static files --- src/backend/taler-merchant-httpd.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/backend/taler-merchant-httpd.c') 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)) { -- cgit v1.2.3