mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
13 lines
234 B
JavaScript
13 lines
234 B
JavaScript
import nconf from 'nconf';
|
|
import {
|
|
NotFound,
|
|
} from '../libs/errors';
|
|
|
|
export default function ensureTimeTravelMode (req, res, next) {
|
|
if (nconf.get('ENABLE_TIME_TRAVEL')) {
|
|
next();
|
|
} else {
|
|
next(new NotFound());
|
|
}
|
|
}
|