mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 18:53:23 +02:00
Screenshot resizing works in the UI now. Still missing rate limiting.
This commit is contained in:
@@ -74,13 +74,13 @@ module.exports = function(options) {
|
||||
}))
|
||||
|
||||
// Proxied requests must come before any body parsers
|
||||
app.post('/api/v1/resources', function(req, res) {
|
||||
app.all('/api/v1/s/image/*', function(req, res) {
|
||||
proxy.web(req, res, {
|
||||
target: options.storageUrl
|
||||
target: options.storagePluginImageUrl
|
||||
})
|
||||
})
|
||||
|
||||
app.get('/api/v1/resources/:id', function(req, res) {
|
||||
app.all('/api/v1/s/*', function(req, res) {
|
||||
proxy.web(req, res, {
|
||||
target: options.storageUrl
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user