diff --git a/FlippR-Driver/src/utility/OutputRequestHandler.cpp b/FlippR-Driver/src/utility/OutputRequestHandler.cpp index 1feefbc..a7c9bc6 100644 --- a/FlippR-Driver/src/utility/OutputRequestHandler.cpp +++ b/FlippR-Driver/src/utility/OutputRequestHandler.cpp @@ -4,6 +4,8 @@ #include "OutputRequestHandler.h" +#include +#include #include #include namespace flippR_driver @@ -20,13 +22,14 @@ OutputRequestHandler::OutputRequestHandler(std::shared_ptr void OutputRequestHandler::handleRequest(HTTPServerRequest &request, HTTPServerResponse &response) { - auto& path_segments = getPathSegments(URI(request.getPathSegments())); + auto& path_segments = getPathSegments(URI(request.getURI())); std::string item_type = path_segments.at(0); std::string item_name = path_segments.at(1); std::string action = path_segments.at(2); std::string score = ""; + request. if(item_type == "displays") { score = path_segments.at(3); @@ -155,6 +158,7 @@ void OutputRequestHandler::parseDisplay(const std::string& item_name, const std: throw new Poco::NotFoundException("No Action with name \"" + action + "\" on sounds!"); } } + std::vector OutputRequestHandler::getPathSegements(Poco::URI uri) { std::vector path_segments;