Add .unhandled route

This commit is contained in:
Alex Hultman
2018-10-03 18:35:20 +02:00
parent 0d932e9649
commit d4ca158495
5 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ public:
}
TemplatedApp &unhandled(std::function<void(HttpResponse<SSL> *, HttpRequest *)> handler) {
//httpContext->onGet(pattern, handler);
httpContext->onUnhandled(handler);
return *this;
}