Browse Source

Fix on token check

kanadeko 7 years ago
parent
commit
04946126c9
1 changed files with 1 additions and 3 deletions
  1. 1 3
      routes/api.js

+ 1 - 3
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) => {