export default {
  name: 'path',

  lookup (req, res, options) {
    let found;

    if (req === undefined) {
      return found;
    }

    if (options.lookupPath !== undefined) {
      found = req.params[options.lookupPath];
    }

    if (!found && options.lookupFromPathIndex !== undefined) {
      let parts = req.originalUrl.split('/');
      if (parts[0] === '') { // Handle paths that start with a slash, i.e., '/foo' -> ['', 'foo']
        parts.shift();
      }

      if (parts.length > options.lookupFromPathIndex) {
        found = parts[options.lookupFromPathIndex];
      }
    }

    return found;
  }
};

@@ -302,19 +302,18 @@
   let pa
-rts
+th
  = req.o
@@ -330,16 +330,54 @@
 .split('
+?')%5B0%5D;%0A      let parts = path.split('
 /');%0A   

Fix path lookup logic where query was being included in path