cms/app-client/app/router.js
author ymh <ymh.work@gmail.com>
Tue, 20 Mar 2018 15:02:40 +0100
changeset 573 25f3d28f51b2
parent 456 3a32d2f57429
permissions -rw-r--r--
Added tag 0.0.25 for changeset 190ae1dee68d

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

const Router = Ember.Router.extend({

    location: config.locationType,
    rootURL: config.rootURL,

    player: Ember.inject.service(),

    didTransition:function() {
        this.get('player').toggleVideoscreen(false);
        this.get('player').displayMetadata(this.get('player').get('window'));

        this._super(...arguments);
    }

});

Router.map(function() {
    this.route('document', { path: '/doc/:doc_id'});
    this.route('index', { path: '/' });
    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' });
});

export default Router;