From 04946126c98f1823d26486ef7cbac5d436bff689 Mon Sep 17 00:00:00 2001 From: kanadeko Date: Mon, 16 Jan 2017 06:06:19 -0300 Subject: Fix on token check --- routes/api.js | 4 +--- 1 file changed, 1 insertion(+), 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) => { -- cgit v1.2.3