39 bool dispatched =
false;
42 const std::string absoluteMountPath = path_concat(parentMountPath, mountPoint.relativeMountPath);
44 if (((controller.getRequest()->path.rfind(absoluteMountPath, 0) == 0 ||
45 controller.getRequest()->url.rfind(absoluteMountPath, 0) == 0) &&
46 mountPoint.method ==
"use") ||
47 ((absoluteMountPath == controller.getRequest()->url || absoluteMountPath == controller.getRequest()->path ||
48 checkForUrlMatch(absoluteMountPath, controller.getRequest()->url)) &&
49 (controller.getRequest()->method == mountPoint.method || mountPoint.method ==
"all"))) {
52 if (hasResult(absoluteMountPath)) {
53 setParams(absoluteMountPath, *controller.getRequest());
57 lambda(controller.getRequest(), controller.getResponse(), next);
62 controller = next.controller;