Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
cavoke::server::controllers::GamesController Class Reference
Inheritance diagram for cavoke::server::controllers::GamesController:
[legend]

Public Member Functions

METHOD_LIST_BEGIN ADD_METHOD_TO (GamesController::games_list, "/games/list", drogon::Get, drogon::Options)
 
 ADD_METHOD_TO (GamesController::game_config, "/games/{game_id}/get_config", drogon::Get, drogon::Options)
 
 ADD_METHOD_TO (GamesController::game_client_file, "/games/{game_id}/get_client", drogon::Get, drogon::Options)
 
METHOD_LIST_END GamesController (std::shared_ptr< model::GamesStorage > games_storage)
 

Protected Member Functions

void games_list (const drogon::HttpRequestPtr &req, std::function< void(const drogon::HttpResponsePtr &)> &&callback)
 
void game_config (const drogon::HttpRequestPtr &req, std::function< void(const drogon::HttpResponsePtr &)> &&callback, const std::string &game_id)
 
void game_client_file (const drogon::HttpRequestPtr &req, std::function< void(const drogon::HttpResponsePtr &)> &&callback, const std::string &game_id)
 

Detailed Description

Definition at line 11 of file games_controller.h.

Constructor & Destructor Documentation

◆ GamesController()

cavoke::server::controllers::GamesController::GamesController ( std::shared_ptr< model::GamesStorage games_storage)
explicit

Definition at line 5 of file games_controller.cpp.

Member Function Documentation

◆ game_client_file()

void cavoke::server::controllers::GamesController::game_client_file ( const drogon::HttpRequestPtr &  req,
std::function< void(const drogon::HttpResponsePtr &)> &&  callback,
const std::string &  game_id 
)
protected

Definition at line 37 of file games_controller.cpp.

◆ game_config()

void cavoke::server::controllers::GamesController::game_config ( const drogon::HttpRequestPtr &  req,
std::function< void(const drogon::HttpResponsePtr &)> &&  callback,
const std::string &  game_id 
)
protected

Definition at line 22 of file games_controller.cpp.

◆ games_list()

void cavoke::server::controllers::GamesController::games_list ( const drogon::HttpRequestPtr &  req,
std::function< void(const drogon::HttpResponsePtr &)> &&  callback 
)
protected

Definition at line 10 of file games_controller.cpp.


The documentation for this class was generated from the following files: