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

13 lines
283 B
JavaScript
Raw Normal View History

'use strict';
const config = require('../config/config');
const resourceLocation = () => {
if (process.env.NODE_ENV === config.test.dredd.env) {
2018-03-30 20:28:31 +02:00
return config.test.dredd.resourceLocation;
}
return config.resourceLocation;
};
exports.resourceLocation = resourceLocation;