summaryrefslogtreecommitdiff
path: root/lib/web/imageRouter.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring imageRouter to modularitySheogorath2018-03-201-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>
* Remove camel case from `imageuploadtype` in configSheogorath2018-01-271-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>
* Add support for minioMarc Deop2017-08-301-0/+34
|
* fix s3 us-east-1 region endpointKotaro Yamamoto2017-06-141-1/+4
|
* fix(imageRouter): import missing dependency: getImageMimeTypeRaccoon Li2017-05-081-1/+1
|
* refactor(app.js): Extract upload imageBoHong Li2017-05-081-0/+95