mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Fix on token check
This commit is contained in:
parent
14ddf495b3
commit
04946126c9
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user