cms/app-client/app/router.js
author nowmad@23.1.168.192.in-addr.arpa
Fri, 13 Nov 2015 11:04:04 +0100
changeset 16 70e9a764d6d7
parent 5 d4b3da0dadc9
child 35 9148b2653eb5
permissions -rw-r--r--
add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     1
import Ember from 'ember';
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     2
import config from './config/environment';
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     3
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     4
var Router = Ember.Router.extend({
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     5
  location: config.locationType
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     6
});
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     7
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
     8
Router.map(function() {
16
70e9a764d6d7 add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
nowmad@23.1.168.192.in-addr.arpa
parents: 5
diff changeset
     9
  this.route('visus/visu-langues', { path: '/langues' });
70e9a764d6d7 add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
nowmad@23.1.168.192.in-addr.arpa
parents: 5
diff changeset
    10
  this.route('visus/visu-carto', { path: '/cartographie' });
70e9a764d6d7 add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
nowmad@23.1.168.192.in-addr.arpa
parents: 5
diff changeset
    11
  this.route('visus/visu-thematiques', { path: '/thematiques' });
70e9a764d6d7 add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
nowmad@23.1.168.192.in-addr.arpa
parents: 5
diff changeset
    12
  this.route('visus/visu-discours', { path: '/discours' });
70e9a764d6d7 add all tabs corresponding to each visualization, update name and structure and create a simple squeleton
nowmad@23.1.168.192.in-addr.arpa
parents: 5
diff changeset
    13
  this.route('visus/visu-chrono', { path: '/chronologie' });
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    14
});
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    15
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    16
export default Router;