diff options
| author | Pitu <[email protected]> | 2017-01-17 19:35:18 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-17 19:35:18 -0300 |
| commit | 66f4961c38effa408a48d6d801787958b0a5e6fe (patch) | |
| tree | 24fcd99215bafe60af15aae1953ef87adf763bef /routes/api.js | |
| parent | Removed maxFile check on frontend (diff) | |
| download | host.fuwn.me-66f4961c38effa408a48d6d801787958b0a5e6fe.tar.xz host.fuwn.me-66f4961c38effa408a48d6d801787958b0a5e6fe.zip | |
Better link display on homepage
Diffstat (limited to 'routes/api.js')
| -rw-r--r-- | routes/api.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/routes/api.js b/routes/api.js index c2ce8a8..ca9c7c0 100644 --- a/routes/api.js +++ b/routes/api.js @@ -5,7 +5,10 @@ const albumsController = require('../controllers/albumsController') const tokenController = require('../controllers/tokenController') routes.get ('/check', (req, res, next) => { - return res.json({ private: config.private }) + return res.json({ + private: config.private, + maxFileSize: config.uploads.maxsize + }) }) routes.get ('/uploads', (req, res, next) => uploadController.list(req, res)) |