event loop with threadmgr
Some checks failed
Docker Build & Publish / build (push) Has been cancelled

This commit is contained in:
Nicholas Orlowsky 2025-02-21 14:09:01 -05:00
parent f09b261b62
commit ca05aa1e5a
9 changed files with 69 additions and 122 deletions

View file

@ -108,5 +108,5 @@ int main(int argc, char** argv)
auto args = std::span(argv, size_t(argc));
api_backend ab;
ab.register_endpoint("users/*", handle_request);
anthracite_main(argc, argv, ab);
//anthracite_main(argc, argv, ab);
}

View file

@ -1,10 +1,15 @@
#include "../lib/anthracite.hpp"
#include "../lib/backends/file_backend.hpp"
#include "../lib/config/config.hpp"
using namespace anthracite;
int main(int argc, char** argv)
{
backends::file_backend fb("./www");
anthracite_main(argc, argv, fb);
config::config cfg(5);
cfg.add_http_config(config::http_config(8080));
cfg.add_https_config(config::https_config(8081, "", ""));
anthracite_main(fb, cfg);
}