Parcourir la source

Fix on token check

kanadeko il y a 7 ans
Parent
commit
04946126c9
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  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) => {