mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-22 04:37:02 +00:00
30 lines
330 B
C++
30 lines
330 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,
|
|
// INVALID
|
|
INVALID
|
|
};
|
|
private:
|
|
mg_mgr mgr;
|
|
|
|
|
|
};
|
|
|
|
#endif
|