Commit 286040fd authored by James Allenby's avatar James Allenby
Browse files

Added exit condition to URI

parent a08fedc6
......@@ -19,7 +19,10 @@ int main()
response.Close();
});
server.All("/quit", [](auto& request, auto& response) {
std::exit(EXIT_SUCCESS);
});
// Start the server finally
server.Start(10000);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment