mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
🚧 help redirects to repo help docs
This commit is contained in:
parent
b9af380b64
commit
65d21848b3
1 changed files with 7 additions and 7 deletions
|
|
@ -1,12 +1,13 @@
|
||||||
#include "bank_api.h"
|
#include "bank_api.h"
|
||||||
|
|
||||||
// const auto data(R); \
|
// const auto data(R);
|
||||||
// auto res = std::make_shared<HttpResponseImpl>(data.first, CT_APPLICATION_JSON); \
|
// auto res = std::make_shared<HttpResponseImpl>(data.first, CT_APPLICATION_JSON);
|
||||||
// res->setJsonObject(JsonCast(std::move(data.second))); \
|
// res->setJsonObject(JsonCast(std::move(data.second)));
|
||||||
// doResponseCreateAdvices(res); \
|
// doResponseCreateAdvices(res);
|
||||||
// callback(res);
|
// callback(res);
|
||||||
|
|
||||||
#define CACHE_FOREVER resp->setExpiredTime(0);
|
#define CACHE_FOREVER resp->setExpiredTime(0);
|
||||||
|
|
||||||
#define GEN_BODY \
|
#define GEN_BODY \
|
||||||
const auto temp_req = req->getJsonObject(); \
|
const auto temp_req = req->getJsonObject(); \
|
||||||
const auto body = temp_req ? *temp_req : Json::Value();
|
const auto body = temp_req ? *temp_req : Json::Value();
|
||||||
|
|
@ -98,8 +99,7 @@ void api::SetBal(req_args) const
|
||||||
//System Usage
|
//System Usage
|
||||||
void api::Help(req_args) const
|
void api::Help(req_args) const
|
||||||
{
|
{
|
||||||
auto resp = HttpResponse::newHttpResponse();
|
auto resp = HttpResponse::newRedirectionResponse("https://github.com/EntireTwix/CCash/blob/Refractor/docs/connected_services/how_to/endpoints.md"); //may make README.md
|
||||||
resp->setBody(""); //will be filled in with docs
|
|
||||||
CACHE_FOREVER;
|
CACHE_FOREVER;
|
||||||
callback(resp);
|
callback(resp);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue