I don't think so, because the middleware won't know what part of the path is variable