Init
This commit is contained in:
23
Modules/Server/src/api.hpp
Normal file
23
Modules/Server/src/api.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Created by Kaonnull on 25.05.2021.
|
||||
//
|
||||
#include <httplib.h>
|
||||
#include <soci/soci.h>
|
||||
|
||||
class Api
|
||||
{
|
||||
soci::session& sql;
|
||||
public:
|
||||
Api(soci::session& sql, httplib::Server& server);
|
||||
|
||||
void RegisterServerHandles(httplib::Server& server);
|
||||
|
||||
public: // Endpoints
|
||||
void add(httplib::Request const& rq, httplib::Response& rs);
|
||||
|
||||
void queue(httplib::Request const& rq, httplib::Response& rs);
|
||||
void file(httplib::Request const& rq, httplib::Response& rs);
|
||||
|
||||
void set_cross_headers(httplib::Response& rs);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user