fix pool API path

This commit is contained in:
Dietmar Maurer 2012-01-31 07:24:31 +01:00
parent 7a6b5d9f21
commit 00267e948d
3 changed files with 4 additions and 4 deletions

View File

@ -11,10 +11,10 @@ Ext.define('PVE.dc.PoolEdit', {
var method;
if (me.create) {
url = '/api2/extjs/access/pools';
url = '/api2/extjs/pools';
method = 'POST';
} else {
url = '/api2/extjs/access/pools/' + me.poolid;
url = '/api2/extjs/pools/' + me.poolid;
method = 'PUT';
}

View File

@ -30,7 +30,7 @@ Ext.define('PVE.dc.PoolView', {
},
handler: function(btn, event, rec) {
PVE.Utils.API2Request({
url: '/access/pools/' + rec.data.poolid,
url: '/pools/' + rec.data.poolid,
method: 'DELETE',
waitMsgTarget: me,
callback: function() {

View File

@ -47,7 +47,7 @@ Ext.define('PVE.form.PoolSelector', {
fields: [ 'poolid', 'comment' ],
proxy: {
type: 'pve',
url: "/api2/json/access/pools"
url: "/api2/json/pools"
},
idProperty: 'poolid'
});