Change all "api" URLs. Ideally the path prefix would be an option.

This commit is contained in:
Simo Kinnunen
2014-12-17 21:29:51 +09:00
parent 436fa6eff9
commit b2e114c9be
14 changed files with 28 additions and 29 deletions

View File

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