Files
project-work/worker-toolkit-flaredown/repo/frontend/app/router.js

58 lines
1.4 KiB
JavaScript

import EmberRouter from '@ember/routing/router';
import config from './config/environment';
import RouterScroll from 'ember-router-scroll';
const Router = EmberRouter.extend(RouterScroll, {
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
this.route('login');
this.route('signup');
this.route('chart');
this.route('patterns', function() {
this.route('shared', { path: '/:friendly_id' });
});
this.route('discourse-sign-in', { path: '/discourse/sign_in' });
this.route('password', function() {
this.route('reset');
this.route('update', { path: ':password_id' });
});
this.route('invitation', { path: '/invitation/:invitation_id' });
this.route('onboarding', { path: '/onboarding/:step_key' });
this.route('checkin', function() {
this.route('date', { path: '/:date_key' });
this.route('show', { path: '/:checkin_id/:step_key' });
});
this.route('terms-of-service');
this.route('privacy-policy');
this.route('settings');
this.route('delete');
this.route('posts', function() {
this.route('new');
this.route('show', { path: '/:id' });
this.route('topic', { path: '/:type/:id' });
this.route('profile');
this.route('followings');
});
this.route('unsubscribe', { path: 'unsubscribe/:notify_token' });
this.route('notifications');
this.route('oracle', function() {
this.route('result', { path: ':id' });
});
});
export default Router;