Make Router more sexy

This commit is contained in:
Maurice Grönwoldt 2024-02-04 13:52:08 +01:00
commit d547bb9f95
9 changed files with 144 additions and 173 deletions

View file

@ -25,7 +25,7 @@ int main() {
auto& router = server.GetRouter();
// For debugging and profiling more than 1 thread can be hard.
server.GetServerConfig()->WorkerThreads = 1;
router->Get("/test", [](const Request&, Response& response) {
router->Get("/test", [](Request&, Response& response) {
response << "NICE";
return true;
});