cms/app-client/app/router.js
author Chloe Laisne <chloe.laisne@gmail.com>
Thu, 23 Jun 2016 11:35:26 +0200
changeset 199 b7c691c6179d
parent 136 5fed7e1716c2
child 219 3578846b66f4
permissions -rw-r--r--
Set location filter label Fix query parameters when navigating through tabs
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
136
5fed7e1716c2 upgrade ember and ember cli
ymh <ymh.work@gmail.com>
parents: 98
diff changeset
     4
const Router = Ember.Router.extend({
5
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() {
98
2e6bfce6f99c add details tab for perma-link to documents
nowmad@23.1.168.192.in-addr.arpa
parents: 94
diff changeset
     9
  this.route('tabs/detail', { path: '/detail/:document_id' });
35
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    10
  this.route('tabs/langues', { path: '/langues' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    11
  this.route('tabs/carto', { path: '/cartographie' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    12
  this.route('tabs/thematiques', { path: '/thematiques' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    13
  this.route('tabs/discours', { path: '/discours' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    14
  this.route('tabs/chrono', { path: '/chronologie' });
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    15
});
9148b2653eb5 update the route with new names
nowmad@nowmads-macbook-pro.local
parents: 16
diff changeset
    16
5
d4b3da0dadc9 init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff changeset
    17
export default Router;