author | ymh <ymh.work@gmail.com> |
Sat, 06 Aug 2016 21:29:33 +0700 | |
changeset 261 | 02e2396bcbbc |
parent 259 | 6af61adbd570 |
child 271 | e234339fe8df |
permissions | -rw-r--r-- |
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 | 4 |
const Router = Ember.Router.extend({ |
261
02e2396bcbbc
Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents:
259
diff
changeset
|
5 |
location: config.locationType, |
02e2396bcbbc
Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
ymh <ymh.work@gmail.com>
parents:
259
diff
changeset
|
6 |
rootURL: config.rootURL |
5
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 |
|
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
9 |
Router.map(function() { |
259
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
10 |
this.route('tabs/langues', { path: '/' }); // Default |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
11 |
this.route('tabs/langues', { path: '/langues' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
12 |
this.route('tabs/carto', { path: '/cartographie' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
13 |
this.route('tabs/thematiques', { path: '/thematiques' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
14 |
this.route('tabs/discours', { path: '/discours' }); |
6af61adbd570
doc-subject for bnf links
Chloe Laisne <chloe.laisne@gmail.com>
parents:
219
diff
changeset
|
15 |
this.route('tabs/chrono', { path: '/chronologie' }); |
35
9148b2653eb5
update the route with new names
nowmad@nowmads-macbook-pro.local
parents:
16
diff
changeset
|
16 |
}); |
9148b2653eb5
update the route with new names
nowmad@nowmads-macbook-pro.local
parents:
16
diff
changeset
|
17 |
|
5
d4b3da0dadc9
init ember app with 2 pages and an images
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
18 |
export default Router; |