diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-27 18:38:35 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-27 18:38:35 +0200 |
| commit | d8c4d84dc75300c6d4d8b0adceafa33741960b92 (patch) | |
| tree | 00e2dfcc5c836d62fccff76c862e6ec3b0a74db8 /libs/cpp-httplib/benchmark/crow/main.cpp | |
| parent | fa088bb60692ba02d30d39affa9a31d9e2b688e2 (diff) | |
added http lib, working on AI invoice importing
Diffstat (limited to 'libs/cpp-httplib/benchmark/crow/main.cpp')
| -rw-r--r-- | libs/cpp-httplib/benchmark/crow/main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/cpp-httplib/benchmark/crow/main.cpp b/libs/cpp-httplib/benchmark/crow/main.cpp new file mode 100644 index 0000000..034cf78 --- /dev/null +++ b/libs/cpp-httplib/benchmark/crow/main.cpp @@ -0,0 +1,17 @@ +#include "crow_all.h" + +class CustomLogger : public crow::ILogHandler { +public: + void log(std::string, crow::LogLevel) {} +}; + +int main() { + CustomLogger logger; + crow::logger::setHandler(&logger); + + crow::SimpleApp app; + + CROW_ROUTE(app, "/")([]() { return "Hello world!"; }); + + app.port(8080).multithreaded().run(); +} |
