mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
spacing is for nerds
This commit is contained in:
parent
fcef2b1c02
commit
d56882e535
@ -9,7 +9,7 @@ routes.get ('/check', (req, res, next) => {
|
||||
return res.json({token: true})
|
||||
})
|
||||
|
||||
routes.get ('/info', (req, res, next) => {
|
||||
routes.get ('/info', (req, res, next) => {
|
||||
|
||||
if(config.TOKEN !== '')
|
||||
if(req.headers.auth !== config.TOKEN)
|
||||
@ -21,7 +21,7 @@ routes.get ('/info', (req, res, next) => {
|
||||
})
|
||||
|
||||
routes.post ('/upload', (req, res, next) => uploadController.upload(req, res, next))
|
||||
routes.get ('/gallery', (req, res, next) => galleryController.list(req, res, next))
|
||||
routes.get ('/gallery/test', (req, res, next) => galleryController.test(req, res, next))
|
||||
routes.get ('/gallery', (req, res, next) => galleryController.list(req, res, next))
|
||||
routes.get ('/gallery/test', (req, res, next) => galleryController.test(req, res, next))
|
||||
|
||||
module.exports = routes
|
||||
|
Loading…
Reference in New Issue
Block a user