From cefad9a48a260d01ac7f9692a3b071a19628de4f Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Fri, 28 Jul 2023 16:28:25 -0400 Subject: [PATCH] Fixed /extracts HTTP method. --- source/csgs/http.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/csgs/http.d b/source/csgs/http.d index be070b2..2ca997b 100644 --- a/source/csgs/http.d +++ b/source/csgs/http.d @@ -15,7 +15,7 @@ void startServer() { config.port = 8100; PathDelegatingHandler handler = new PathDelegatingHandler(); - handler.addMapping(Method.GET, "/extracts", &handleExtract); + handler.addMapping(Method.POST, "/extracts", &handleExtract); handler.addMapping(Method.GET, "/extracts/{extractId}", &getExtract); handler.addMapping(Method.POST, "/item-reports", &handleItemReport); handler.addMapping(Method.GET, "/item-reports", &getItemReports);