call method
Implementation
Future<LWDResponse> call(LWDRequest request) async {
for (var route in _routes) {
if (route.verb != request.method.toUpperCase() && route.verb != 'ALL') {
continue;
}
var path = request.url.path;
if (route.match(path)) {
return await route.executeHandler(request);
}
}
return LWDResponse.notFound('Route not found');
}