60f34dafb0
* Revert "Revert "Deprecate API v2"" * fix path in shops controller
13 lines
226 B
JavaScript
13 lines
226 B
JavaScript
import nconf from 'nconf';
|
|
import {
|
|
NotFound,
|
|
} from '../libs/errors';
|
|
|
|
module.exports = function ensureDevelpmentMode (req, res, next) {
|
|
if (nconf.get('IS_PROD')) {
|
|
next(new NotFound());
|
|
} else {
|
|
next();
|
|
}
|
|
};
|