#ifndef WXHELPER_HTTP_ROUTER_H_ #define WXHELPER_HTTP_ROUTER_H_ #include #include #include #include #include "singleton.h" namespace http { typedef std::function HttpHandler; class HttpRouter : public base::Singleton { public: void HttpRouter::AddPathRouting(const std::string &path, HttpHandler handler); std::string HandleHttpRequest(const std::string &path, const std::string ¶m); private: std::unordered_map route_table_{}; }; } // namespace http #endif