mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Change all "api" URLs. Ideally the path prefix would be an option.
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = function StorageServiceFactory($http, $upload) {
|
||||
|
||||
service.storeUrl = function(type, url) {
|
||||
return $http({
|
||||
url: '/api/v1/s/' + type + '/download'
|
||||
url: '/s/api/v1/' + type + '/download'
|
||||
, method: 'POST'
|
||||
, data: {
|
||||
url: url
|
||||
@@ -19,7 +19,7 @@ module.exports = function StorageServiceFactory($http, $upload) {
|
||||
|
||||
if (input.length) {
|
||||
$upload.upload({
|
||||
url: '/api/v1/s/' + type
|
||||
url: '/s/api/v1/' + type
|
||||
, method: 'POST'
|
||||
, file: input
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user