cms/app-client/app/router.js
author nowmad@nowmads-macbook-pro.local
Tue, 15 Dec 2015 17:23:11 +0100
changeset 57 36dc51dd60e9
parent 35 9148b2653eb5
child 91 acfeddc7821d
permissions -rw-r--r--
clean console.log

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;