mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
⏪🔥 reverted last commit
This commit is contained in:
parent
b18ec4e26d
commit
6b481802e5
1 changed files with 6 additions and 6 deletions
|
|
@ -19,7 +19,7 @@
|
||||||
const auto resp = HttpResponse::newCustomHttpResponse("true"); \
|
const auto resp = HttpResponse::newCustomHttpResponse("true"); \
|
||||||
CORS; \
|
CORS; \
|
||||||
CACHE_FOREVER \
|
CACHE_FOREVER \
|
||||||
callback(resp)
|
callback(resp);
|
||||||
|
|
||||||
#define NAME_PARAM req->getParameter("name")
|
#define NAME_PARAM req->getParameter("name")
|
||||||
|
|
||||||
|
|
@ -53,20 +53,20 @@ void api::SendFunds(req_args) const
|
||||||
GEN_BODY
|
GEN_BODY
|
||||||
RESPONSE_PARSE(bank.SendFunds(NAME_PARAM, body["name"].asCString(), body["amount"].asUInt()));
|
RESPONSE_PARSE(bank.SendFunds(NAME_PARAM, body["name"].asCString(), body["amount"].asUInt()));
|
||||||
}
|
}
|
||||||
void api::VerifyPassword(req_args) const { RESPOND_TRUE; }
|
void api::VerifyPassword(req_args) const { RESPOND_TRUE }
|
||||||
|
|
||||||
//Meta Usage
|
//Meta Usage
|
||||||
void api::ChangePassword(req_args) const
|
void api::ChangePassword(req_args) const
|
||||||
{
|
{
|
||||||
GEN_BODY
|
GEN_BODY
|
||||||
bank.ChangePassword(NAME_PARAM, std::move(body["pass"].asCString()));
|
bank.ChangePassword(NAME_PARAM, std::move(body["pass"].asCString()));
|
||||||
RESPOND_TRUE;
|
RESPOND_TRUE
|
||||||
}
|
}
|
||||||
void api::AdminChangePassword(req_args) const
|
void api::AdminChangePassword(req_args) const
|
||||||
{
|
{
|
||||||
GEN_BODY
|
GEN_BODY
|
||||||
bank.ChangePassword(body["name"].asCString(), std::move(body["pass"].asCString()));
|
bank.ChangePassword(body["name"].asCString(), std::move(body["pass"].asCString()));
|
||||||
RESPOND_TRUE;
|
RESPOND_TRUE
|
||||||
}
|
}
|
||||||
void api::SetBal(req_args) const
|
void api::SetBal(req_args) const
|
||||||
{
|
{
|
||||||
|
|
@ -90,7 +90,7 @@ void api::Close(req_args) const
|
||||||
{
|
{
|
||||||
bank.Save();
|
bank.Save();
|
||||||
app().quit();
|
app().quit();
|
||||||
RESPOND_TRUE; //filter handles admin creds
|
RESPOND_TRUE //filter handles admin creds
|
||||||
}
|
}
|
||||||
void api::Contains(req_args, const std::string &name) const
|
void api::Contains(req_args, const std::string &name) const
|
||||||
{
|
{
|
||||||
|
|
@ -100,7 +100,7 @@ void api::Contains(req_args, const std::string &name) const
|
||||||
}
|
}
|
||||||
void api::AdminVerifyAccount(req_args) const
|
void api::AdminVerifyAccount(req_args) const
|
||||||
{
|
{
|
||||||
RESPOND_TRUE; //filter handles admin creds
|
RESPOND_TRUE //filter handles admin creds
|
||||||
}
|
}
|
||||||
void api::ApiProperties(req_args) const
|
void api::ApiProperties(req_args) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue