1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

Make it a bit easier to tell image plugin endpoint apart from normal storage endpoints. It still sucks though.

This commit is contained in:
Simo Kinnunen 2015-01-06 19:56:21 +09:00
parent c162291753
commit 7c16c40dae
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ module.exports = function(options) {
app.set('trust proxy', true) app.set('trust proxy', true)
app.get( app.get(
'/s/api/v1/image/:id/*' '/s/api/v1/image/:id/*/transform'
, requtil.limit(options.concurrency, function(req, res) { , requtil.limit(options.concurrency, function(req, res) {
return get(req.url, options) return get(req.url, options)
.then(function(stream) { .then(function(stream) {

View file

@ -16,7 +16,7 @@ module.exports = function ScreenshotsCtrl($scope) {
var finalMaxSize = maxSize * multiplier var finalMaxSize = maxSize * multiplier
return (finalSize === finalMaxSize) ? '' : return (finalSize === finalMaxSize) ? '' :
'?crop=' + finalSize + 'x' '/transform?crop=' + finalSize + 'x'
} }
$scope.takeScreenShot = function () { $scope.takeScreenShot = function () {