mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-13 21:01:08 -04:00
did i say simpler? i'm not sure if this is more or less simple...but it is secure and operates how we need... @apathy audit please?
This commit is contained in:
Vendored
+8
-1
@@ -26,9 +26,16 @@ License: what's a license? we're a bunch of dirty pirates!
|
||||
|
||||
namespace webAPI
|
||||
{
|
||||
|
||||
struct statusMessage
|
||||
{
|
||||
bool status;
|
||||
std::string message;
|
||||
};
|
||||
|
||||
using namespace std;
|
||||
|
||||
string simplePost(const string &endpoint, const string &data, const string &slotName, const string &messageSlot);
|
||||
statusMessage simplePost(const string &endpoint, const string &data, const string &slotName, const string &messageSlot, const string &statusSlot, const string &statusVal);
|
||||
nlohmann::json request(const string &endpoint, const string &data, const int &reqType); // 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