Revision f3444497
b/snf-cyclades-app/synnefo/ui/new_ui/ui/app/router.js | ||
---|---|---|
1 |
Snf.Router.map(function (argument) {}); |
|
1 |
Snf.Router.map(function() { |
|
2 |
|
|
3 |
this.resource('vms', { path: '/vms/:view_cls' }); |
|
4 |
this.resource('vmsCreate', { path: '/vms/create' }); |
|
5 |
this.resource('vminit', { path: '/vm'}); |
|
6 |
this.resource('vm', { path: '/vm/:vm_id' }, function () { |
|
7 |
this.route('info'); |
|
8 |
this.route('disk-connected'); |
|
9 |
this.route('network-connected'); |
|
10 |
}); |
|
11 |
|
|
12 |
this.resource('networks', {path: '/networks/:view_cls'}); |
|
13 |
this.resource('networksCreate', { path: '/networks/create' }); |
|
14 |
this.resource('networkinit', { path: '/network'}); |
|
15 |
this.resource('network', { path: '/network/:network_id' }, function () { |
|
16 |
this.route('info'); |
|
17 |
this.route('vm-connected'); |
|
18 |
}); |
|
19 |
|
|
20 |
this.resource('volumes', {path: '/volumes/:view_cls'}); |
|
21 |
this.resource('volumesCreate', { path: '/volumes/create' }); |
|
22 |
this.resource('volumeinit', { path: '/volume'}); |
|
23 |
this.resource('volume', { path: '/volume/:volume_id' }, function () { |
|
24 |
this.route('info'); |
|
25 |
this.route('vm-connected'); |
|
26 |
}); |
|
27 |
|
|
28 |
}); |
Also available in: Unified diff