summaryrefslogtreecommitdiff
path: root/lib/web/imageRouter.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-03-20Refactoring imageRouter to modularitySheogorath1-132/+0
This should make the imageRouter more modular and easier to extent. Also a lot of code duplication was removed which should simplify maintenance in future. In the new setup we only need to provide a new module file which exports a function called `uploadImage` and takes a filePath and a callback as argument. The callback itself takes an error and an url as parameter. This eliminates the need of a try-catch-block around the statement and re-enabled the optimization in NodeJS. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-01-27Remove camel case from `imageuploadtype` in configSheogorath1-2/+2
This removes the only camel cased option of the config options **we** added to the config.json. In auth provider's config parts are a lot of camel cased options provided. We shouldn't touch them to keep them as similar as possible to the examples. Fixes #315 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2017-08-30Add support for minioMarc Deop1-0/+34
2017-06-14fix s3 us-east-1 region endpointKotaro Yamamoto1-1/+4
2017-05-08fix(imageRouter): import missing dependency: getImageMimeTypeRaccoon Li1-1/+1
2017-05-08refactor(app.js): Extract upload imageBoHong Li1-0/+95