Create Utilities Manager for storage of non database Based functions

This commit is contained in:
Tina_Azure
2023-04-04 01:47:54 +02:00
parent f19d999c64
commit ff4f6d6fb6

19
src/utilities.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <string>
#include <list>
#include <iostream>
#include <vector>
#include <pqxx/pqxx>
#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());
}
}