diff --git a/src/utilities.cpp b/src/utilities.cpp new file mode 100644 index 0000000..b034a7c --- /dev/null +++ b/src/utilities.cpp @@ -0,0 +1,19 @@ +#include +#include +#include +#include +#include +#include "crow.h" + + +/* + * Utility Manager + */ +namespace Utilities { + /* + * Takes String and cuts from the start-up to the length of valueName + */ + std::string extractSingleValueFromRequestBody(std::string responseBody, std::string valueName){ + return responseBody.substr(valueName.length() + 1, responseBody.length()); + } +} \ No newline at end of file