code: function registerPathParamMiddleware () {
      let pathParams = getAllPathParamNames();
  
      pathParams.forEach((param) => {
        if (!alreadyRegistered(param)) {
          router.param(param, pathParamMiddleware);
        }
      });
    }
docs: Registers middleware to parse path parameters.