Commit d5704517 authored by Dietmar Maurer's avatar Dietmar Maurer

fix pool API path

parent 96755c9d
......@@ -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';
}
......
......@@ -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() {
......
......@@ -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'
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment