mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-19 01:22:14 +11:00
🚚 moved CORS back
This commit is contained in:
parent
85ee2167ff
commit
89e4da34bf
1 changed files with 0 additions and 3 deletions
|
|
@ -9,14 +9,12 @@
|
||||||
const auto r(R); \
|
const auto r(R); \
|
||||||
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(std::move(r.second))); \
|
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(std::move(r.second))); \
|
||||||
resp->setStatusCode(r.first); \
|
resp->setStatusCode(r.first); \
|
||||||
CORS; \
|
|
||||||
callback(resp);
|
callback(resp);
|
||||||
|
|
||||||
#define RESPOND_TRUE \
|
#define RESPOND_TRUE \
|
||||||
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(true)); \
|
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(true)); \
|
||||||
resp->setStatusCode(k200OK); \
|
resp->setStatusCode(k200OK); \
|
||||||
CACHE_FOREVER; \
|
CACHE_FOREVER; \
|
||||||
CORS; \
|
|
||||||
callback(resp);
|
callback(resp);
|
||||||
|
|
||||||
#define NAME_PARAM req->getBody().data()
|
#define NAME_PARAM req->getBody().data()
|
||||||
|
|
@ -61,7 +59,6 @@ void api::GetLog(req_args)
|
||||||
{
|
{
|
||||||
auto resp = HttpResponse::newHttpJsonResponse("Logs are Disabled");
|
auto resp = HttpResponse::newHttpJsonResponse("Logs are Disabled");
|
||||||
resp->setStatusCode(k404NotFound);
|
resp->setStatusCode(k404NotFound);
|
||||||
CORS;
|
|
||||||
CACHE_FOREVER;
|
CACHE_FOREVER;
|
||||||
callback(resp);
|
callback(resp);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue