Fixed /extracts HTTP method.

This commit is contained in:
Andrew Lalis 2023-07-28 16:28:25 -04:00
parent 1c59ed5bb6
commit cefad9a48a
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ void startServer() {
config.port = 8100; config.port = 8100;
PathDelegatingHandler handler = new PathDelegatingHandler(); 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.GET, "/extracts/{extractId}", &getExtract);
handler.addMapping(Method.POST, "/item-reports", &handleItemReport); handler.addMapping(Method.POST, "/item-reports", &handleItemReport);
handler.addMapping(Method.GET, "/item-reports", &getItemReports); handler.addMapping(Method.GET, "/item-reports", &getItemReports);