Address some fo the feedback

This commit is contained in:
Aaron Kimbre
2025-01-02 20:09:44 -06:00
parent 2b325165aa
commit 181bb0ce14
3 changed files with 13 additions and 19 deletions

View File

@@ -14,10 +14,12 @@ public:
void ReceiveRequests();
void Listen();
private:
struct mg_mgr mgr;
static void HandleRequests(struct mg_connection *c, int ev, void *ev_data);
static std::optional<json> ParseJSON(char * data);
struct mg_mgr mgr;
inline static const std::string root_path = "/api/v1/";
inline static const char * json_content_type = "Content-Type: application/json\r\n";
};
#endif
#endif