<commit_before>import Ember from 'ember';
import config from './config/environment';

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

Router.map(function() {
  this.resource('lists', function(){
    this.route('new');
    this.route('show', {path: ':list_id'});
    this.route('update', {path: ':list_id/update'});
    this.route('delete', {path: ':list_id/delete'});
    this.route('quiz', {path: ':list_id/quiz'});
    this.resource('words', {path: ':list_id/words'}, function(){
      this.route('new');
      this.route('delete', {path:':word_id/delete'});
      this.route('update', {path:':word_id/update'});
    });
  });
  this.route('about');
});

export default Router;
<commit_msg>Issue #3 - fixes the 403 on s3.<commit_after>import Ember from 'ember';
import config from './config/environment';

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

Router.map(function() {
  this.resource('lists', function(){
    this.route('new');
    this.route('show', {path: ':list_id'});
    this.route('update', {path: ':list_id/update'});
    this.route('delete', {path: ':list_id/delete'});
    this.route('quiz', {path: ':list_id/quiz'});
    this.resource('words', {path: ':list_id/words'}, function(){
      this.route('new');
      this.route('delete', {path:':word_id/delete'});
      this.route('update', {path:':word_id/update'});
    });
  });
  this.route('about');
});

Router.reopen({
  // Amazon s3 doesn't work with the auto routing, it will return a 403, forbidden.
  location: 'hash'
});

export default Router;

{'fraction_non_alphanumeric': 0.21728081321473952, 'fraction_numerical': 0.005717916137229987, 'mean_word_length': 4.320945945945946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5343437', 'n_tokens_mistral': 549, 'n_tokens_neox': 527, 'n_words': 107}