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:
parent
c162291753
commit
7c16c40dae
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue