controllers/resolver.js
/**
 * @method register
 * @description provided an express application, register routes based on regex
 * MATCHES to handle the resolving of ids
 * 
 * @param {Object} app 
 */
@method register
@description provided an express application, register routes based on regex
MATCHES to handle the resolving of ids

@param {Object} app
@method register @description provided an express application register routes based on regex MATCHES to handle the resolving of ids @param { Object } app
async function register(app) {
  app.get(/\/ucdrp:.*/, (req, res) => {
    res.redirect(req.path.replace(/\/ucdrp:/, '/'));
  });
  for( let key in MATCHES ) {
    app.get(MATCHES[key], middleware);
  }
}
async function register ( app ) { app . get ( / \/ucdrp:.* / , ( req , res ) => { res . redirect ( req . path . replace ( / \/ucdrp: / , '/' ) ) ; } ) ; for ( let key in MATCHES ) { app . get ( MATCHES [ key ] , middleware ) ; } }
@method register
 @description provided an express application, register routes based on regex
 MATCHES to handle the resolving of ids
@method register @description provided an express application register routes based on regex MATCHES to handle the resolving of ids
// strip ucdrp