Fix on token check

This commit is contained in:
kanadeko 2017-01-16 06:06:19 -03:00
parent 14ddf495b3
commit 04946126c9

View File

@ -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) => {