import EmberRouter from '@ember/routing/router';
import config from './config/environment';

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

Router.map(function() {
  	this.route('categories', {
      resetNamespace: true,
      path: '/'
    }, function () {

      this.route('category1', {
        resetNamespace: true
      }, function () {
        this.route('configuration', {
          path: '/'
        });
      });
      
      this.route('category2', {
        resetNamespace: true
      }, function () {
        this.route('configuration', {
          path: '/'
        });
      });
    });
});

export default Router;