mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 16:36:21 +00:00
Camelcased the config
This commit is contained in:
parent
11d6c00d89
commit
368b40c9d1
@ -17,7 +17,7 @@ const storage = multer.diskStorage({
|
|||||||
|
|
||||||
const upload = multer({
|
const upload = multer({
|
||||||
storage: storage,
|
storage: storage,
|
||||||
limits: { fileSize: config.uploads.maxsize }
|
limits: { fileSize: config.uploads.maxSize }
|
||||||
}).array('files[]')
|
}).array('files[]')
|
||||||
|
|
||||||
uploadsController.upload = function(req, res, next){
|
uploadsController.upload = function(req, res, next){
|
||||||
|
@ -7,7 +7,7 @@ const tokenController = require('../controllers/tokenController')
|
|||||||
routes.get ('/check', (req, res, next) => {
|
routes.get ('/check', (req, res, next) => {
|
||||||
return res.json({
|
return res.json({
|
||||||
private: config.private,
|
private: config.private,
|
||||||
maxFileSize: config.uploads.maxsize
|
maxFileSize: config.uploads.maxSize
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user