Make Router more sexy
This commit is contained in:
parent
5bb68a7d02
commit
d547bb9f95
9 changed files with 144 additions and 173 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue