router.js 972 B

12345678910111213141516171819202122232425262728293031323334
  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. // Auth
  8. this.route('activation', { path: 'activation/' }, function() {
  9. this.route('activate', { path: ':user_id/:token/' });
  10. });
  11. this.route('forgotten-password', { path: 'forgotten-password/' }, function() {
  12. this.route('change-form', { path: ':user_id/:token/' });
  13. });
  14. this.route('register', { path: 'register/' });
  15. // Legal
  16. this.route('terms-of-service', { path: 'terms-of-service/' });
  17. this.route('privacy-policy', { path: 'privacy-policy/' });
  18. // Error
  19. this.route('error-0', { path: 'error-0/' });
  20. this.route('error-403', { path: 'error-403/:reason/' });
  21. this.route('error-404', { path: 'error-404/' });
  22. this.route('error-banned', { path: 'banned/:reason/' });
  23. this.route('not-found', { path: '*path' });
  24. this.route('register');
  25. });
  26. export default Router;