Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / router.js @ ef5eff50

History | View | Annotate | Download (810 Bytes)

1 e4a6c3b8 Olga Brani
App.Router.map(function (argument) {
2 ef5eff50 Olga Brani
3 e4a6c3b8 Olga Brani
        this.resource('vms', { path: '/vms/:view_cls' });
4 cb6d8025 Olga Brani
    this.resource('vminit', { path: '/vm'});
5 86e9ef86 Olga Brani
        this.resource('vm', { path: '/vm/:vm_id' }, function () {
6 ef5eff50 Olga Brani
                ;this.route('info');
7 ef5eff50 Olga Brani
        this.route('disk-connected');
8 ef5eff50 Olga Brani
        this.route('network-connected')
9 86e9ef86 Olga Brani
        });
10 ef5eff50 Olga Brani
11 ef5eff50 Olga Brani
    this.resource('networks', {path: '/networks/:view_cls'});
12 cb6d8025 Olga Brani
    this.resource('networkinit', { path: '/network'});
13 e4a6c3b8 Olga Brani
        this.resource('network', { path: '/network/:network_id' }, function () {
14 86e9ef86 Olga Brani
                this.route('info');
15 86e9ef86 Olga Brani
                this.route('vm-connected');
16 86e9ef86 Olga Brani
        });
17 ef5eff50 Olga Brani
18 83506b33 Olga Brani
    this.resource('volumes', {path: '/volumes/:view_cls'});
19 cb6d8025 Olga Brani
    this.resource('volumeinit', { path: '/volume'});
20 83506b33 Olga Brani
    this.resource('volume', { path: '/volume/:volume_id' }, function () {
21 83506b33 Olga Brani
       this.route('info');
22 83506b33 Olga Brani
       this.route('vm-connected');
23 83506b33 Olga Brani
    });
24 ef5eff50 Olga Brani
25 0e3af75d Olga Brani
});