seocahill/dts-explorer-client

View on GitHub
app/router.js

Summary

Maintainability
A
0 mins
Test Coverage
import EmberRouter from '@ember/routing/router';
import config from './config/environment';

const Router = EmberRouter.extend({
  location: config.locationType,
  rootURL: config.rootURL
});

Router.map(function() {
  this.route('discoverable-taxonomy-sets');
  this.route('discoverable-taxonomy-set', {
    path: 'discoverable-taxonomy-sets/:dts_id'
  }, function() {
    this.route('role-type', {
      path: 'role-types/:role_type_id'
    }, function() {
      this.route('presentation-nodes');
      this.route('presentation-node', {
        path: 'presentation-nodes/:presentation_node_id'
      }, function() {
        this.route('element', {
          path: 'element/:element_id'
        });
        this.route('dimensions');
        this.route('dimension-node', {
          path: 'dimensions/:dimension_node_id'
        }, function() {
          this.route('element', {
            path: 'element/:element_id'
          });
        });
      });
    });
  });
});

export default Router;