mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
cleanups and clarity
This commit is contained in:
Vendored
+2
-2
@@ -30,13 +30,13 @@ namespace webAPI
|
||||
struct statusMessage
|
||||
{
|
||||
bool status;
|
||||
std::string message;
|
||||
std::string retVal;
|
||||
};
|
||||
|
||||
using namespace std;
|
||||
|
||||
statusMessage simplePost(const string &endpoint, const string &data, const string &slotName = "success", const string &messageSlot ="message", const string &statusSlot = "status", const string &statusVal = "success");
|
||||
nlohmann::json request(const string &endpoint, const string &data, const int &reqType); // 1 for post, 0 for get
|
||||
nlohmann::json request(const string &endpoint, const string &data, const int &reqType = 1); // 1 for post, 0 for get
|
||||
size_t writeCallback(void *contents, size_t size, size_t nmemb, void *userp);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user