mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-18 17:12:14 +11:00
🐎 response is always true or false so to_string is slower
This commit is contained in:
parent
9ee4f7ab88
commit
51a9ab8ff8
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ void api::Close(req_args) const
|
||||||
}
|
}
|
||||||
void api::Contains(req_args, const std::string &name) const
|
void api::Contains(req_args, const std::string &name) const
|
||||||
{
|
{
|
||||||
RESPONSE_PARSE(BankResponse(k200OK, std::to_string(bank.Contains(name))));
|
const auto resp = HttpResponse::newCustomHttpResponse(bank.Contains(name) ? "true" : "false");
|
||||||
|
CORS;
|
||||||
|
callback(resp);
|
||||||
}
|
}
|
||||||
void api::AdminVerifyAccount(req_args) const
|
void api::AdminVerifyAccount(req_args) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue