Revision 0e2122e7 snf-cyclades-app/synnefo/ui/new_ui/ui/app/router.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/app/router.js
1
App.Router.map(function (argument) {
2

  
3
	this.resource('vms', { path: '/vms/:view_cls' });
4
    this.resource('vminit', { path: '/vm'});
5
	this.resource('vm', { path: '/vm/:vm_id' }, function () {
6
		this.route('info');
7
        this.route('disk-connected');
8
        this.route('network-connected');
9
	});
10

  
11
    this.resource('networks', {path: '/networks/:view_cls'});
12
    this.resource('networkinit', { path: '/network'});
13
	this.resource('network', { path: '/network/:network_id' }, function () {
14
		this.route('info');
15
		this.route('vm-connected');
16
	});
17

  
18
    this.resource('volumes', {path: '/volumes/:view_cls'});
19
    this.resource('volumeinit', { path: '/volume'});
20
    this.resource('volume', { path: '/volume/:volume_id' }, function () {
21
       this.route('info');
22
       this.route('vm-connected');
23
    });
24

  
25
});
1
Snf.Router.map(function (argument) {});

Also available in: Unified diff