2016-11-29 13:07:53 -05:00
|
|
|
export default function() {
|
|
|
|
this.route('admin', { resetNamespace: true }, function() {
|
2013-02-22 15:41:12 -05:00
|
|
|
this.route('dashboard', { path: '/' });
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminSiteSettings', { path: '/site_settings', resetNamespace: true }, function() {
|
|
|
|
this.route('adminSiteSettingsCategory', { path: 'category/:category_id', resetNamespace: true} );
|
2013-11-13 14:02:47 -05:00
|
|
|
});
|
2013-04-04 12:59:44 -04:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminEmail', { path: '/email', resetNamespace: true}, function() {
|
2014-02-14 18:50:08 -05:00
|
|
|
this.route('sent');
|
2014-02-14 13:06:21 -05:00
|
|
|
this.route('skipped');
|
2016-05-02 17:15:32 -04:00
|
|
|
this.route('bounced');
|
2016-01-18 18:57:55 -05:00
|
|
|
this.route('received');
|
|
|
|
this.route('rejected');
|
2013-06-03 16:12:24 -04:00
|
|
|
this.route('previewDigest', { path: '/preview-digest' });
|
|
|
|
});
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminCustomize', { path: '/customize', resetNamespace: true } ,function() {
|
2015-08-06 12:43:56 -04:00
|
|
|
|
2017-04-12 10:52:52 -04:00
|
|
|
this.route('colors', function() {
|
|
|
|
this.route('show', {path: '/:scheme_id'});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.route('adminCustomizeThemes', { path: 'themes', resetNamespace: true }, function() {
|
|
|
|
this.route('show', {path: '/:theme_id'});
|
|
|
|
this.route('edit', {path: '/:theme_id/:target/:field_name/edit'});
|
2015-08-06 12:43:56 -04:00
|
|
|
});
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminSiteText', { path: '/site_texts', resetNamespace: true }, function() {
|
2015-11-23 16:45:05 -05:00
|
|
|
this.route('edit', { path: '/:id' });
|
2014-09-23 17:12:01 -04:00
|
|
|
});
|
2015-11-23 16:45:05 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminUserFields', { path: '/user_fields', resetNamespace: true });
|
|
|
|
this.route('adminEmojis', { path: '/emojis', resetNamespace: true });
|
|
|
|
this.route('adminPermalinks', { path: '/permalinks', resetNamespace: true });
|
|
|
|
this.route('adminEmbedding', { path: '/embedding', resetNamespace: true });
|
|
|
|
this.route('adminCustomizeEmailTemplates', { path: '/email_templates', resetNamespace: true }, function() {
|
2015-11-12 16:08:19 -05:00
|
|
|
this.route('edit', { path: '/:id' });
|
|
|
|
});
|
2014-04-16 09:49:06 -04:00
|
|
|
});
|
2016-09-19 04:43:06 -04:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminApi', { path: '/api', resetNamespace: true }, function() {
|
|
|
|
this.route('adminApiKeys', { path: '/keys', resetNamespace: true });
|
2016-09-19 04:43:06 -04:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminWebHooks', { path: '/web_hooks', resetNamespace: true }, function() {
|
2016-09-19 04:43:06 -04:00
|
|
|
this.route('show', { path: '/:web_hook_id' });
|
|
|
|
this.route('showEvents', { path: '/:web_hook_id/events' });
|
|
|
|
});
|
2016-06-15 13:49:57 -04:00
|
|
|
});
|
2014-02-12 23:34:57 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('admin.backups', { path: '/backups', resetNamespace: true }, function() {
|
2014-02-12 23:34:57 -05:00
|
|
|
this.route('logs');
|
|
|
|
});
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminReports', { path: '/reports/:type', resetNamespace: true });
|
2013-02-27 22:39:42 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminFlags', { path: '/flags', resetNamespace: true }, function() {
|
2014-11-11 15:48:13 -05:00
|
|
|
this.route('list', { path: '/:filter' });
|
2013-02-22 15:41:12 -05:00
|
|
|
});
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminLogs', { path: '/logs', resetNamespace: true }, function() {
|
2013-08-07 16:04:12 -04:00
|
|
|
this.route('staffActionLogs', { path: '/staff_action_logs' });
|
2013-08-15 10:48:30 -04:00
|
|
|
this.route('screenedEmails', { path: '/screened_emails' });
|
2013-10-21 14:49:51 -04:00
|
|
|
this.route('screenedIpAddresses', { path: '/screened_ip_addresses' });
|
2013-08-15 10:48:30 -04:00
|
|
|
this.route('screenedUrls', { path: '/screened_urls' });
|
2013-08-01 21:30:13 -04:00
|
|
|
});
|
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminGroups', { path: '/groups', resetNamespace: true }, function() {
|
2015-10-26 15:56:59 -04:00
|
|
|
this.route('bulk');
|
|
|
|
this.route('bulkComplete', { path: 'bulk-complete' });
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminGroupsType', { path: '/:type', resetNamespace: true }, function() {
|
|
|
|
this.route('adminGroup', { path: '/:name', resetNamespace: true });
|
2015-01-21 14:52:48 -05:00
|
|
|
});
|
2014-04-23 13:25:02 -04:00
|
|
|
});
|
2013-04-17 03:08:21 -04:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminUsers', { path: '/users', resetNamespace: true }, function() {
|
|
|
|
this.route('adminUser', { path: '/:user_id/:username', resetNamespace: true }, function() {
|
2014-03-19 10:27:21 -04:00
|
|
|
this.route('badges');
|
2014-09-24 20:19:26 -04:00
|
|
|
this.route('tl3Requirements', { path: '/tl3_requirements' });
|
2014-01-22 17:09:56 -05:00
|
|
|
});
|
2014-11-26 13:05:49 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminUsersList', { path: '/list', resetNamespace: true }, function() {
|
2015-01-21 14:52:48 -05:00
|
|
|
this.route('show', { path: '/:filter' });
|
2013-02-22 15:41:12 -05:00
|
|
|
});
|
2013-02-20 13:15:50 -05:00
|
|
|
});
|
2013-02-22 15:41:12 -05:00
|
|
|
|
2016-11-02 13:38:54 -04:00
|
|
|
this.route('adminBadges', { path: '/badges', resetNamespace: true }, function() {
|
2014-10-17 14:27:40 -04:00
|
|
|
this.route('show', { path: '/:badge_id' });
|
|
|
|
});
|
2016-11-29 13:07:53 -05:00
|
|
|
|
2016-11-30 04:06:42 -05:00
|
|
|
this.route('adminPlugins', { path: '/plugins', resetNamespace: true }, function() {
|
|
|
|
this.route('index', { path: '/' });
|
|
|
|
});
|
2016-11-29 13:07:53 -05:00
|
|
|
});
|
2015-01-30 13:29:32 -05:00
|
|
|
};
|