mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00: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); \
|
||||
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(std::move(r.second))); \
|
||||
resp->setStatusCode(r.first); \
|
||||
CORS; \
|
||||
callback(resp);
|
||||
|
||||
#define RESPOND_TRUE \
|
||||
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(true)); \
|
||||
resp->setStatusCode(k200OK); \
|
||||
CACHE_FOREVER; \
|
||||
CORS; \
|
||||
callback(resp);
|
||||
|
||||
#define NAME_PARAM req->getBody().data()
|
||||
|
|
@ -61,7 +59,6 @@ void api::GetLog(req_args)
|
|||
{
|
||||
auto resp = HttpResponse::newHttpJsonResponse("Logs are Disabled");
|
||||
resp->setStatusCode(k404NotFound);
|
||||
CORS;
|
||||
CACHE_FOREVER;
|
||||
callback(resp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue