mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Too much overlap in storage plugin URLs for meaningful loadbalancing and config simplicity. Make poorxy emulate the real situation and change related URLs.
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = function StorageServiceFactory($http, $upload) {
|
||||
|
||||
service.storeUrl = function(type, url) {
|
||||
return $http({
|
||||
url: '/s/api/v1/' + type + '/download'
|
||||
url: '/s/download/' + type
|
||||
, method: 'POST'
|
||||
, data: {
|
||||
url: url
|
||||
@@ -19,7 +19,7 @@ module.exports = function StorageServiceFactory($http, $upload) {
|
||||
|
||||
if (input.length) {
|
||||
$upload.upload({
|
||||
url: '/s/api/v1/' + type
|
||||
url: '/s/upload/' + type
|
||||
, method: 'POST'
|
||||
, file: input
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user