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

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  this.route('login', function() {});

  this.route('articles', function() {
    this.route('new');
  });
  this.resource('article', { path: 'articles/:article_id' }, function() {
    this.route('edit');
  });
});

export default Router;

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

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  this.route('login', function() {});

  this.route('articles', function() {
    this.route('new');
    this.resource('article', { path: ':article_id' }, function() {
      this.route('edit');
    });
  });

});

export default Router;

Move article route under articles
feat: Move article route under articles
