mplement: Should call a middleware if the layer matches the request path.