aboutsummaryrefslogtreecommitdiff
path: root/routes/api.js
diff options
context:
space:
mode:
authorkanadeko <[email protected]>2017-01-15 03:15:08 -0300
committerkanadeko <[email protected]>2017-01-15 03:15:08 -0300
commit0c6912d2c344253dc116d17a78ae364c53cb1eaa (patch)
tree67abef98a870cab5707a546b87b287b6b3205c13 /routes/api.js
parentMerge branch 'master' of https://github.com/WeebDev/loli-safe (diff)
downloadhost.fuwn.me-0c6912d2c344253dc116d17a78ae364c53cb1eaa.tar.xz
host.fuwn.me-0c6912d2c344253dc116d17a78ae364c53cb1eaa.zip
stuff
Diffstat (limited to 'routes/api.js')
-rw-r--r--routes/api.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/routes/api.js b/routes/api.js
index 23a1a60..a4e8e0b 100644
--- a/routes/api.js
+++ b/routes/api.js
@@ -3,6 +3,12 @@ const routes = require('express').Router()
const uploadController = require('../controllers/uploadController')
const galleryController = require('../controllers/galleryController')
+routes.get ('/check', (req, res, next) => {
+ if(config.TOKEN === '')
+ return res.json({token: false})
+ return res.json({token: true})
+})
+
routes.get ('/info', (req, res, next) => {
if(config.TOKEN !== '')