forked from cat/WebBase
Fix for adding boilerplate
This commit is contained in:
16
src/Entry.cpp
Normal file
16
src/Entry.cpp
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user