#ifndef CLASS_PROXYSQL_RESTAPI_SERVER_H #define CLASS_PROXYSQL_RESTAPI_SERVER_H #include "proxysql.h" #include "cpp.h" #include #include #include #include "httpserver.hpp" class ProxySQL_RESTAPI_Server { private: std::unique_ptr ws; int port; pthread_t thread_id; std::unique_ptr endpoint; std::vector>> _endpoints {}; public: ProxySQL_RESTAPI_Server( int p, std::vector< std::pair< std::string, std::function(const httpserver::http_request&)>> > endpoints = std::vector< std::pair< std::string, std::function(const httpserver::http_request&)>>> {} ); ~ProxySQL_RESTAPI_Server(); void init(); void print_version(); }; #endif /* CLASS_PROXYSQL_RESTAPI_SERVER */