router.js 731 B

123456789101112131415161718192021
  1. import Ember from 'ember';
  2. import config from './config/environment';
  3. var Router = Ember.Router.extend({
  4. location: config.locationType
  5. });
  6. Router.map(function() {
  7. this.route('forgotten-password', { path: 'forgotten-password/' }, function() {
  8. this.route('change-form', { path: ':user_id/:token/' });
  9. });
  10. this.route('terms-of-service', { path: 'terms-of-service/' });
  11. this.route('privacy-policy', { path: 'privacy-policy/' });
  12. this.route('error-0', { path: 'error-0/' });
  13. this.route('error-403', { path: 'error-403/:reason/' });
  14. this.route('error-404', { path: 'error-404/' });
  15. this.route('error-banned', { path: 'banned/:reason/' });
  16. this.route('not-found', { path: '*path' });
  17. });
  18. export default Router;