mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
🚚 renmaed DelUser to DelSelf
This commit is contained in:
parent
14287cf7b4
commit
74b45a1775
2 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ public:
|
|||
|
||||
void AddUser(req_args) const;
|
||||
void AdminAddUser(req_args) const;
|
||||
void DelUser(req_args) const;
|
||||
void DelSelf(req_args) const;
|
||||
void AdminDelUser(req_args) const;
|
||||
|
||||
#endif
|
||||
|
|
@ -69,7 +69,7 @@ public:
|
|||
//User Managment
|
||||
METHOD_ADD(api::AddUser, "/v1/user/register", Post, Options); //expects ["name"](string) ["pass"](string)
|
||||
METHOD_ADD(api::AdminAddUser, "/v1/admin/user/register", Post, Options, "JsonFilter<true>", "UserFilter<false, true>"); //expects ["name"](string) ["amount"](32 bits) ["pass"](string)
|
||||
METHOD_ADD(api::DelUser, "/v1/user/delete", Delete, Options, "UserFilter<true, false>", "JsonFilter<false>");
|
||||
METHOD_ADD(api::DelSelf, "/v1/user/delete", Delete, Options, "UserFilter<true, false>", "JsonFilter<false>");
|
||||
METHOD_ADD(api::AdminDelUser, "/v1/admin/user/delete", Delete, Options, "JsonFilter<true>", "UserFilter<false, true>"); //expects ["name"](string)
|
||||
#endif
|
||||
METHOD_ADD(api::ApiProperties, "/properties", Get, Options);
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ void api::AdminAddUser(req_args) const
|
|||
}
|
||||
RESPONSE_PARSE(std::move(res));
|
||||
}
|
||||
void api::DelUser(req_args) const
|
||||
void api::DelSelf(req_args) const
|
||||
{
|
||||
bank.DelSelf(NAME_PARAM);
|
||||
RESPOND_TRUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue