5 #ifndef JODA_JODASOURCEREQUEST_H
6 #define JODA_JODASOURCEREQUEST_H
25 httplib::Server &server);
28 static constexpr
auto endpoint =
"/sources";
29 static constexpr
auto temp_endpoint =
"/results";
31 static void sendSources(
const httplib::Request &req, httplib::Response &res);
32 static void sendTemporaries(
const httplib::Request &req,
33 httplib::Response &res);
34 static std::string storageToJSON(
const JSONStorage &storage,
35 unsigned long id = 0);
Definition: JSONStorage.h:24
Definition: JodaSourceRequest.h:17
static void registerEndpoint(const std::string &prefix, httplib::Server &server)
Definition: JodaSourceRequest.cpp:12