mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
Merge branch 'main' of https://github.com/EntireTwix/CCash
This commit is contained in:
commit
0b9a8a1541
4 changed files with 7 additions and 6 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
/build
|
/build
|
||||||
/config.json
|
/config.json
|
||||||
/users.json
|
/users.json
|
||||||
|
/*.md
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ Thank you to the contributors
|
||||||
|
|
||||||
| Name | Project Work | Connected Service Work |
|
| Name | Project Work | Connected Service Work |
|
||||||
| :------------------------------------------ | ---------------------------------------------------------- | ---------------------- |
|
| :------------------------------------------ | ---------------------------------------------------------- | ---------------------- |
|
||||||
| [Expand](https://github.com/Expand-sys) | `N/A` | Frontend |
|
| [Expand](https://github.com/Expand-sys) | Slight docker changes | Frontend |
|
||||||
| [React](https://github.com/Reactified) | Logo | CC {API, Shops, ATM} |
|
| [React](https://github.com/Reactified) | CC API, Logo | CC Shop, CC ATM. |
|
||||||
|
| [Luke](https://github.com/LukeeeeBennett) | JS API, Docker, Slight Doc edits | `N/A` |
|
||||||
| [Doggo](https://github.com/FearlessDoggo21) | Logs loading/adding Optimized, HTTP convention suggestions | `N/A` |
|
| [Doggo](https://github.com/FearlessDoggo21) | Logs loading/adding Optimized, HTTP convention suggestions | `N/A` |
|
||||||
| [Luke](https://github.com/LukeeeeBennett) | Docker, Slight Doc edits | JS API |
|
|
||||||
| [Jolly](https://github.com/STBoyden) | Slight Doc edits | `N/A` |
|
| [Jolly](https://github.com/STBoyden) | Slight Doc edits | `N/A` |
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
|
||||||
4
main.cpp
4
main.cpp
|
|
@ -55,7 +55,7 @@ int main(int argc, char **argv)
|
||||||
bank.admin_pass = argv[1];
|
bank.admin_pass = argv[1];
|
||||||
|
|
||||||
//Auto Saving
|
//Auto Saving
|
||||||
const unsigned long saving_freq = std::stoul(argv[2]);
|
const unsigned long saving_freq = std::stoul(std::string(argv[2]));
|
||||||
if (saving_freq) //if saving frequency is 0 then auto saving is turned off
|
if (saving_freq) //if saving frequency is 0 then auto saving is turned off
|
||||||
{
|
{
|
||||||
std::thread([saving_freq]() {
|
std::thread([saving_freq]() {
|
||||||
|
|
@ -73,7 +73,7 @@ int main(int argc, char **argv)
|
||||||
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
|
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
|
||||||
resp->addHeader("Access-Control-Allow-Origin", "*");
|
resp->addHeader("Access-Control-Allow-Origin", "*");
|
||||||
});
|
});
|
||||||
app().loadConfigFile(config_location).registerController(API).setThreadNum(std::stoul(argv[3])).run();
|
app().loadConfigFile(config_location).registerController(API).setThreadNum(std::stoul(std::string(argv[3]))).run();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -92,4 +92,4 @@ void BankF::GetLog(req_args, const std::string &name)
|
||||||
resp->setExpiredTime(0); //cached forever
|
resp->setExpiredTime(0); //cached forever
|
||||||
callback(resp);
|
callback(resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue