Created
March 6, 2018 15:25
-
-
Save lukaszjanyga/d6aed0951858734f50b27da6eca17dcf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.init(CONFIG_FILE) | |
.then(() => { | |
config.config.bodyParser = require('./config/upload_config'); | |
return hydraExpress.init(config.getObject(), version, onRegisterRoutes, onRegisterMiddleware); | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAX_FILE_SIZE = '20mb'; | |
module.exports = { | |
json: { | |
limit: MAX_FILE_SIZE | |
}, | |
urlencoded: { | |
limit: MAX_FILE_SIZE, | |
extended: false | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment