made RESPOND_TRUE use the custom BankResponse response

This commit is contained in:
EntireTwix 2021-07-07 02:44:11 -07:00
parent f4f28fa92f
commit 9fabf137f1

View file

@ -10,10 +10,7 @@
#define RESPONSE_PARSE(R) callback(HttpResponse::newCustomHttpResponse(R));
#define RESPOND_TRUE \
auto resp = HttpResponse::newHttpJsonResponse(true); \
CACHE_FOREVER \
callback(resp);
#define RESPOND_TRUE RESPONSE_PARSE(BankResponse(k200OK, "\"true\""))
#define NAME_PARAM req->getParameter("name")