🎨 changed how API versions are handled

This commit is contained in:
EntireTwix 2021-06-27 17:35:31 -07:00
parent d9986db962
commit d92bc60e79
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ using namespace drogon;
#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>
{
Bank &bank;

View file

@ -27,4 +27,4 @@ if false, when frequency is hit save
*/
#define CONSERVATIVE_DISK_SAVE true
#define V1_API true
#define API_VERSION 1

View file

@ -43,7 +43,7 @@ constexpr Json::Value JsonCast(T &&val)
}
}
#if V1_API
#if API_VERSION == 1
api::api(Bank &b) : bank(b)
{
}