🔥 GEN_BODY is no longer needed

This commit is contained in:
William Katz 2021-06-18 12:22:11 -07:00 committed by GitHub
parent 04bf0c55e4
commit f541e16a4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,9 +2,6 @@
#define JSON(V) callback(HttpResponse::newHttpJsonResponse(V)); #define JSON(V) callback(HttpResponse::newHttpJsonResponse(V));
#define INLINE __attribute__((always_inline)) inline #define INLINE __attribute__((always_inline)) inline
#define GEN_BODY \
const auto temp_req = req->getJsonObject(); \
const auto body = temp_req ? *temp_req : Json::Value();
#define PASS_HEADER req->getHeader("Password") #define PASS_HEADER req->getHeader("Password")
BankF::BankF(Bank *b) : bank(*b) {} BankF::BankF(Bank *b) : bank(*b) {}