Support appending routes within the admin section by plugins

This commit is contained in:
Robin Ward
2015-01-30 13:29:32 -05:00
parent 750b27f973
commit f923d7e205
3 changed files with 48 additions and 18 deletions

View File

@@ -1,5 +1,7 @@
export default function() {
this.resource('admin', function() {
export default {
resource: 'admin',
map: function() {
this.route('dashboard', { path: '/' });
this.resource('adminSiteSettings', { path: '/site_settings' }, function() {
this.resource('adminSiteSettingsCategory', { path: 'category/:category_id'} );
@@ -60,6 +62,5 @@ export default function() {
this.resource('adminBadges', { path: '/badges' }, function() {
this.route('show', { path: '/:badge_id' });
});
});
}
}
};