module.exports = function() {
var cpRouter = new Marionette.AppRouter({
controller: new cpController({}),
appRoutes: {
'cportal': 'cp_overview',
'cportal/overview': 'cp_overview',
'cportal/config': 'cp_conf',
'cportal/config/:conf_type': 'cp_conf',
'cportal/reports': 'cp_reports'
}
});
return cpRouter;
}
module.exports = function() {
var cpRouter = new Marionette.AppRouter({
controller: new cpController({}),
appRoutes: {
'cportal/:id': 'cp_overview',
'cportal/:id/overview': 'cp_overview',
'cportal/:id/config': 'cp_conf',
'cportal/:id/config/:conf_type': 'cp_conf',
'cportal/:id/reports': 'cp_reports'
}
});
return cpRouter;
}