mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-16 11:31:19 +00:00
31 lines
337 B
C++
31 lines
337 B
C++
#ifndef CHATWEBAPI_H
|
|
#define CHATWEBAPI_H
|
|
|
|
#include "mongoose.h"
|
|
|
|
typedef struct mg_mgr mg_mgr;
|
|
|
|
class ChatWebAPI {
|
|
public:
|
|
ChatWebAPI();
|
|
~ChatWebAPI();
|
|
void ReceiveRequests();
|
|
void Listen();
|
|
enum class eRoute {
|
|
// GET
|
|
PLAYERS,
|
|
TEAMS,
|
|
// POST
|
|
ANNOUNCE,
|
|
CSR,
|
|
// INVALID
|
|
INVALID
|
|
};
|
|
private:
|
|
mg_mgr mgr;
|
|
|
|
|
|
};
|
|
|
|
#endif
|