Screenshot resizing works in the UI now. Still missing rate limiting.

This commit is contained in:
Simo Kinnunen
2014-05-21 14:07:53 +09:00
parent e56d757cde
commit c0d02c4e3a
8 changed files with 43 additions and 47 deletions

View File

@@ -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
})