зеркало из https://github.com/github/vitess-gh.git
web/vtctld: Use relative path to access API.
This commit is contained in:
Родитель
27c10fb6a9
Коммит
3387b443e1
|
@ -1,37 +1,37 @@
|
|||
app.factory('cells', function($resource) {
|
||||
return $resource('/api/cells/');
|
||||
return $resource('../api/cells/');
|
||||
});
|
||||
|
||||
app.factory('keyspaces', function($resource) {
|
||||
return $resource('/api/keyspaces/:keyspace', {}, {
|
||||
return $resource('../api/keyspaces/:keyspace', {}, {
|
||||
'action': {method: 'POST'}
|
||||
});
|
||||
});
|
||||
|
||||
app.factory('shards', function($resource) {
|
||||
return $resource('/api/shards/:keyspace/:shard', {}, {
|
||||
return $resource('../api/shards/:keyspace/:shard', {}, {
|
||||
'action': {method: 'POST'}
|
||||
});
|
||||
});
|
||||
|
||||
app.factory('tablets', function($resource) {
|
||||
return $resource('/api/tablets/:tablet', {}, {
|
||||
return $resource('../api/tablets/:tablet', {}, {
|
||||
'action': {method: 'POST'}
|
||||
});
|
||||
});
|
||||
|
||||
app.factory('tabletinfo', function($resource) {
|
||||
return $resource('/api/tablets/:tablet/:info');
|
||||
return $resource('../api/tablets/:tablet/:info');
|
||||
});
|
||||
|
||||
app.factory('endpoints', function($resource) {
|
||||
return $resource('/api/endpoints/:cell/:keyspace/:shard/:tabletType');
|
||||
return $resource('../api/endpoints/:cell/:keyspace/:shard/:tabletType');
|
||||
});
|
||||
|
||||
app.factory('topodata', function($resource) {
|
||||
return $resource('/api/topodata/:path');
|
||||
return $resource('../api/topodata/:path');
|
||||
});
|
||||
|
||||
app.factory('vschema', function($resource) {
|
||||
return $resource('/api/vschema/');
|
||||
return $resource('../api/vschema/');
|
||||
});
|
||||
|
|
|
@ -25,7 +25,7 @@ app.controller('SchemaCtrl', function($scope, $http, $mdDialog,
|
|||
actions.applyFunc(ev, action, function() {
|
||||
var result = {$resolved: false};
|
||||
|
||||
$http.post('/api/schema/apply', $scope.schemaChange)
|
||||
$http.post('../api/schema/apply', $scope.schemaChange)
|
||||
.success(function(data) {
|
||||
result.$resolved = true;
|
||||
result.Output = data;
|
||||
|
|
Загрузка…
Ссылка в новой задаче