diff --git a/src/store.cpp b/src/store.cpp index 6515341..f4b4130 100644 --- a/src/store.cpp +++ b/src/store.cpp @@ -46,6 +46,13 @@ int Application::run() { [&]() { https_server->start(secure_web_server_started); }); } + http_server.resource["^/orders/?$"]["GET"] = + [&](std::shared_ptr response, ...) { + response->write(Status::success_ok, dat.dump(), + {header_access_control, header_application_data}); + }; + + servers.emplace_back([&]() { http_server.start(web_server_started); }); for (auto &server : servers) {