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