diff options
| author | kanadeko <[email protected]> | 2017-01-16 06:06:19 -0300 |
|---|---|---|
| committer | kanadeko <[email protected]> | 2017-01-16 06:06:19 -0300 |
| commit | 04946126c98f1823d26486ef7cbac5d436bff689 (patch) | |
| tree | 0305e0b29d555994cb3aabc33b9dd54cf42a9102 | |
| parent | Fixed frontend upload (diff) | |
| download | host.fuwn.me-04946126c98f1823d26486ef7cbac5d436bff689.tar.xz host.fuwn.me-04946126c98f1823d26486ef7cbac5d436bff689.zip | |
Fix on token check
| -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) => { |