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