From 7c16c40dae01e80f8384062a2f7c855b51df626d Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 6 Jan 2015 19:56:21 +0900 Subject: [PATCH] Make it a bit easier to tell image plugin endpoint apart from normal storage endpoints. It still sucks though. --- lib/units/storage/plugins/image/index.js | 2 +- res/app/control-panes/screenshots/screenshots-controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/units/storage/plugins/image/index.js b/lib/units/storage/plugins/image/index.js index 6bd3e596..5eb436f8 100644 --- a/lib/units/storage/plugins/image/index.js +++ b/lib/units/storage/plugins/image/index.js @@ -20,7 +20,7 @@ module.exports = function(options) { app.set('trust proxy', true) app.get( - '/s/api/v1/image/:id/*' + '/s/api/v1/image/:id/*/transform' , requtil.limit(options.concurrency, function(req, res) { return get(req.url, options) .then(function(stream) { diff --git a/res/app/control-panes/screenshots/screenshots-controller.js b/res/app/control-panes/screenshots/screenshots-controller.js index 7afe1249..f895e55f 100644 --- a/res/app/control-panes/screenshots/screenshots-controller.js +++ b/res/app/control-panes/screenshots/screenshots-controller.js @@ -16,7 +16,7 @@ module.exports = function ScreenshotsCtrl($scope) { var finalMaxSize = maxSize * multiplier return (finalSize === finalMaxSize) ? '' : - '?crop=' + finalSize + 'x' + '/transform?crop=' + finalSize + 'x' } $scope.takeScreenShot = function () {