'use strict';
var express = require('express');

module.exports = function buildAdminRouter(mediator) {
  var router = express.Router();

  // TODO: Remove this endpoint when not needed
  if (process.env.NODE_ENV !== 'production') {
    /**
     * Asks for data to be reset to the default list of users
     * This is intended only for demonstration/debugging purposes
     * and by default only runs on NODE_ENV === 'development'
     */
    require('./addResetEndpoint')(router, mediator);
  }

  return router;
};
'use strict';
var express = require('express');

module.exports = function buildAdminRouter(mediator) {
  var router = express.Router();

  /**
   * Asks for data to be reset to the default list of users
   * This is intended only for demonstration/debugging purposes.
   * TODO: Remove this endpoint in production or when not needed
   */
  require('./addResetEndpoint')(router, mediator);

  return router;
};
Remove check for environment to add data reset endpoint
Remove check for environment to add data reset endpoint
