diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-05-05 15:03:47 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-05-05 15:03:47 +0200 |
commit | 9d33dde616b0d227b76e9692304cdb22507c72bc (patch) | |
tree | d69c967bf36a242461d99aeec9706afa76ba0b54 /src/backend/taler-merchant-httpd.c | |
parent | e138cd0e5adff973cf1f065e3fd5588f4bd33ddc (diff) | |
download | merchant-9d33dde616b0d227b76e9692304cdb22507c72bc.tar.gz merchant-9d33dde616b0d227b76e9692304cdb22507c72bc.tar.bz2 merchant-9d33dde616b0d227b76e9692304cdb22507c72bc.zip |
implement GET /orders/ID
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index 27541b53..47443470 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -27,6 +27,7 @@ #include "taler-merchant-httpd_auditors.h" #include "taler-merchant-httpd_config.h" #include "taler-merchant-httpd_exchanges.h" +#include "taler-merchant-httpd_get-orders-ID.h" #include "taler-merchant-httpd_mhd.h" #include "taler-merchant-httpd_private-delete-instances-ID.h" #include "taler-merchant-httpd_private-delete-products-ID.h" @@ -36,6 +37,7 @@ #include "taler-merchant-httpd_private-get-products.h" #include "taler-merchant-httpd_private-get-products-ID.h" #include "taler-merchant-httpd_private-get-orders.h" +// #include "taler-merchant-httpd_private-get-orders-ID.h" #include "taler-merchant-httpd_private-patch-instances-ID.h" #include "taler-merchant-httpd_private-patch-products-ID.h" #include "taler-merchant-httpd_private-post-instances.h" @@ -879,6 +881,13 @@ url_handler (void *cls, .method = MHD_HTTP_METHOD_POST, .handler = &TMH_post_orders_ID_pay }, + /* GET /orders/$ID: */ + { + .url_prefix = "/orders/", + .method = MHD_HTTP_METHOD_GET, + .have_id_segment = true, + .handler = &TMH_get_orders_ID + }, { NULL } |