Skip to content
Snippets Groups Projects
router.js 684 B
Newer Older
  • Learn to ignore specific revisions
  • import EmberRouter from '@ember/routing/router';
    import config from 'papermerge/config/environment';
    
    
    export default class Router extends EmberRouter {
      location = config.locationType;
      rootURL = config.rootURL;
    }
    
    
    Router.map(function () {
      this.route('documents');
    
      this.route('document', { path: '/document/:document_id' });
    
    Eugen Ciur's avatar
    Eugen Ciur committed
      this.route('node', { path: '/node/:node_id' });
    
    Eugen Ciur's avatar
    Eugen Ciur committed
    
      this.route('tags', function () {
        this.route('index', { path: '/' });
      });
    
      this.route('automates', function () {
        this.route('add');
    
        this.route('edit', { path: '/:automate_id/edit' });
    
    Eugen Ciur's avatar
    Eugen Ciur committed
        this.route('index', { path: '/' });
      });
    
      this.route('not-found', { path: '/*path' });