diff options
| -rw-r--r-- | routes/api.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/routes/api.js b/routes/api.js index 7f1f047..18135ac 100644 --- a/routes/api.js +++ b/routes/api.js @@ -4,9 +4,7 @@ const uploadController = require('../controllers/uploadController') const galleryController = require('../controllers/galleryController') routes.get ('/check', (req, res, next) => { - if(config.TOKEN === true) - return res.json({token: false}) - return res.json({token: true}) + return res.json({token: config.TOKEN}) }) routes.get('/info', (req, res, next) => { |