text: var path = require("path");
  var config = require('../predix-config');
  
  
  // export the routes to be used in express/json-server in app.js
  module.exports = function() {
    // mock asset data contains an extra "filter" property, so we can easily match the Predix API.
    const routes = {};
  
    // http://localhost:5000/mock-api/predix-asset/asset?filter=group=/group/plant-richmond-refinery
    const compressorJson = require(path.resolve(__dirname, '../' + config.assetModel));
    //const compressorJson = require(path.resolve(__dirname, '../sample-data/predix-asset/Compressor-CMMS-Compressor-2018.json'));
    routes["asset/Compressor-CMMS-Compressor-2018"] = compressorJson;
  
    // http://localhost:5000/mock-api/predix-asset/group?filter=parent=/group/enterprise-predix
    const groupsJson = require(path.resolve(__dirname, '../sample-data/predix-asset/groups.json'));
    routes["group"] = groupsJson;
    return routes;
  };
  