cms/app-client/app/router.js
author nowmad@23.1.168.192.in-addr.arpa
Thu, 17 Dec 2015 12:15:57 +0100
changeset 68 69977e2aa39e
parent 57 36dc51dd60e9
child 91 acfeddc7821d
permissions -rw-r--r--
improve general design of components

import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  this.route('tabs/langues', { path: '/langues' });
  this.route('tabs/carto', { path: '/cartographie' });
  this.route('tabs/thematiques', { path: '/thematiques' });
  this.route('tabs/discours', { path: '/discours' });
  this.route('tabs/chrono', { path: '/chronologie' });
});

Router.reopen({
  onUrlChange: function() {
  }.observes('currentPath')
});

export default Router;