JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
SystemRequest.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 05/03/2020.
3 //
4 
5 #ifndef JODA_SYSTEMREQUEST_H
6 #define JODA_SYSTEMREQUEST_H
7 
8 #include <httplib.h>
10 
11 namespace joda::network::apiv2 {
12 
18  public:
24  static void registerEndpoint(const std::string &prefix,
25  httplib::Server &server);
26 
32  static httplib::Server::Handler getHandler(const std::string &prefix = "");
33 
34  private:
35  static constexpr auto endpoint = "/system";
36 
37  static void sendSystemStats(const httplib::Request &req,
38  httplib::Response &res);
39 };
40 
41 } // namespace joda::network::apiv2
42 
43 #endif // JODA_SYSTEMREQUEST_H
Definition: SystemRequest.h:17
static void registerEndpoint(const std::string &prefix, httplib::Server &server)
Definition: SystemRequest.cpp:25
static httplib::Server::Handler getHandler(const std::string &prefix="")
Definition: SystemRequest.cpp:12
Definition: API.h:10