Allow to stop server and restart server; allow to run loop in multiple threads.
This commit is contained in:
@@ -21,7 +21,7 @@ int main() {
|
||||
|
||||
server.Route("/", std::make_shared<HelloView>());
|
||||
|
||||
server.Start();
|
||||
server.Run();
|
||||
|
||||
} catch (const std::exception&) {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user