root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / router.js @ 83506b33
History | View | Annotate | Download (637 Bytes)
1 |
App.Router.map(function (argument) {
|
---|---|
2 |
this.resource('vms', { path: '/vms/:view_cls' }); |
3 |
this.resource('vm', { path: '/vm/:vm_id' }, function () { |
4 |
this.route('info'); |
5 |
this.route('disk-connected'); |
6 |
this.route('network-connected'); |
7 |
}); |
8 |
this.resource('networks', {path: '/networks/:view_cls'}); |
9 |
this.resource('network', { path: '/network/:network_id' }, function () { |
10 |
this.route('info'); |
11 |
this.route('vm-connected'); |
12 |
}); |
13 |
this.resource('volumes', {path: '/volumes/:view_cls'}); |
14 |
this.resource('volume', { path: '/volume/:volume_id' }, function () { |
15 |
this.route('info'); |
16 |
this.route('vm-connected'); |
17 |
}); |
18 |
}) |