2015-01-30 13:29:32 -05:00
|
|
|
export default {
|
|
|
|
resource: 'admin',
|
|
|
|
|
2015-02-06 17:32:59 -05:00
|
|
|
map() {
|
2013-02-22 15:41:12 -05:00
|
|
|
this.route('dashboard', { path: '/' });
|
2013-11-13 14:02:47 -05:00
|
|
|
this.resource('adminSiteSettings', { path: '/site_settings' }, function() {
|
|
|
|
this.resource('adminSiteSettingsCategory', { path: 'category/:category_id'} );
|
|
|
|
});
|
2013-04-04 12:59:44 -04:00
|
|
|
|
2013-06-03 16:12:24 -04:00
|
|
|
this.resource('adminEmail', { path: '/email'}, 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' });
|
|
|
|
});
|
|
|
|
|
2014-04-16 09:49:06 -04:00
|
|
|
this.resource('adminCustomize', { path: '/customize' } ,function() {
|
|
|
|
this.route('colors');
|
2015-08-06 12:43:56 -04:00
|
|
|
|
|
|
|
this.resource('adminCustomizeCssHtml', { path: 'css_html' }, function() {
|
|
|
|
this.route('show', {path: '/:site_customization_id/:section'});
|
|
|
|
});
|
|
|
|
|
2015-08-07 14:05:08 -04:00
|
|
|
this.resource('adminSiteText', { path: '/site_texts' }, 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
|
|
|
|
2014-12-22 19:12:26 -05:00
|
|
|
this.resource('adminUserFields', { path: '/user_fields' });
|
|
|
|
this.resource('adminEmojis', { path: '/emojis' });
|
2015-07-15 08:54:28 -04:00
|
|
|
this.resource('adminPermalinks', { path: '/permalinks' });
|
2015-08-18 17:15:46 -04:00
|
|
|
this.resource('adminEmbedding', { path: '/embedding' });
|
2015-11-12 16:08:19 -05:00
|
|
|
this.resource('adminCustomizeEmailTemplates', { path: '/email_templates' }, function() {
|
|
|
|
this.route('edit', { path: '/:id' });
|
|
|
|
});
|
2014-04-16 09:49:06 -04:00
|
|
|
});
|
2016-09-19 04:43:06 -04:00
|
|
|
|
|
|
|
this.resource('adminApi', { path: '/api' }, function() {
|
|
|
|
this.resource('adminApiKeys', { path: '/keys' });
|
|
|
|
|
|
|
|
this.resource('adminWebHooks', { path: '/web_hooks' }, function() {
|
|
|
|
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
|
|
|
|
|
|
|
this.resource('admin.backups', { path: '/backups' }, function() {
|
|
|
|
this.route('logs');
|
|
|
|
});
|
2013-02-21 14:09:28 -05:00
|
|
|
|
2013-02-27 22:39:42 -05:00
|
|
|
this.resource('adminReports', { path: '/reports/:type' });
|
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
this.resource('adminFlags', { path: '/flags' }, 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
|
|
|
|
2013-08-01 21:30:13 -04:00
|
|
|
this.resource('adminLogs', { path: '/logs' }, 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
|
|
|
});
|
|
|
|
|
2015-01-21 14:52:48 -05:00
|
|
|
this.resource('adminGroups', { path: '/groups' }, function() {
|
2015-10-26 15:56:59 -04:00
|
|
|
this.route('bulk');
|
|
|
|
this.route('bulkComplete', { path: 'bulk-complete' });
|
2015-01-21 14:52:48 -05:00
|
|
|
this.resource('adminGroupsType', { path: '/:type' }, function() {
|
|
|
|
this.resource('adminGroup', { path: '/:name' });
|
|
|
|
});
|
2014-04-23 13:25:02 -04:00
|
|
|
});
|
2013-04-17 03:08:21 -04:00
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
this.resource('adminUsers', { path: '/users' }, function() {
|
2015-09-26 09:56:36 -04:00
|
|
|
this.resource('adminUser', { path: '/:user_id/:username' }, 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
|
|
|
|
2013-02-22 15:41:12 -05:00
|
|
|
this.resource('adminUsersList', { path: '/list' }, 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
|
|
|
|
2014-10-17 14:27:40 -04:00
|
|
|
this.resource('adminBadges', { path: '/badges' }, function() {
|
|
|
|
this.route('show', { path: '/:badge_id' });
|
|
|
|
});
|
2015-01-30 13:29:32 -05:00
|
|
|
}
|
|
|
|
};
|