opt-cc/server/middleware/resource-location.js

13 lines
283 B
JavaScript

'use strict';
const config = require('../config/config');
const resourceLocation = () => {
if (process.env.NODE_ENV === config.test.dredd.env) {
return config.test.dredd.resourceLocation;
}
return config.resourceLocation;
};
exports.resourceLocation = resourceLocation;