1
0
forked from cat/WebBase

Fix for adding boilerplate

This commit is contained in:
2025-06-18 01:47:58 +03:00
parent a256404a3d
commit a607e4c99f
5 changed files with 129 additions and 0 deletions

16
src/Entry.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include "main.hpp"
#include <exception>
#include <iostream>
// Entry point a.k.a "main.cpp"
// You do not want to program here 99% of the time
int main(int argc, char *argv[]) {
try {
asio::io_context context;
Webserver server(context);
context.run();
} catch (std::exception &e) {
std::cerr << e.what() << "\n";
}
return 0;
}