mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🎨 changed how API versions are handled
This commit is contained in:
parent
d9986db962
commit
d92bc60e79
3 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ using namespace drogon;
|
||||||
|
|
||||||
#define req_args const HttpRequestPtr &req, std::function<void(const HttpResponsePtr &)> &&callback
|
#define req_args const HttpRequestPtr &req, std::function<void(const HttpResponsePtr &)> &&callback
|
||||||
|
|
||||||
#if V1_API
|
#if API_VERSION == 1
|
||||||
class api : public HttpController<api, false>
|
class api : public HttpController<api, false>
|
||||||
{
|
{
|
||||||
Bank &bank;
|
Bank &bank;
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,4 @@ if false, when frequency is hit save
|
||||||
*/
|
*/
|
||||||
#define CONSERVATIVE_DISK_SAVE true
|
#define CONSERVATIVE_DISK_SAVE true
|
||||||
|
|
||||||
#define V1_API true
|
#define API_VERSION 1
|
||||||
|
|
@ -43,7 +43,7 @@ constexpr Json::Value JsonCast(T &&val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if V1_API
|
#if API_VERSION == 1
|
||||||
api::api(Bank &b) : bank(b)
|
api::api(Bank &b) : bank(b)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue