<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Admin module routes (HMVC).
 *
 * The MX router's Modules::parse_routes() loads this file when the first
 * URI segment is "admin". Keys are matched against the FULL uri.
 *
 * These aliases map the friendly singular content segments
 * (e.g. admin/services/edit/3) to their *_admin controllers.
 */

/* friendly index routes */
$route['admin/services']            = 'services_admin/index';
$route['admin/portfolio']           = 'portfolio_admin/index';
$route['admin/talent']              = 'talent_admin/index';
$route['admin/events']              = 'events_admin/index';
$route['admin/blog']                = 'blog_admin/index';
$route['admin/partners']            = 'partners_admin/index';
$route['admin/testimonials']        = 'testimonials_admin/index';
$route['admin/team']                = 'team_admin/index';
$route['admin/pages']               = 'pages_admin/index';

/* friendly sub-action routes — (:any) is greedy (.+) in MX */
$route['admin/services/(:any)']     = 'services_admin/$1';
$route['admin/portfolio/(:any)']    = 'portfolio_admin/$1';
$route['admin/talent/(:any)']       = 'talent_admin/$1';
$route['admin/events/(:any)']       = 'events_admin/$1';
$route['admin/blog/(:any)']         = 'blog_admin/$1';
$route['admin/partners/(:any)']     = 'partners_admin/$1';
$route['admin/testimonials/(:any)'] = 'testimonials_admin/$1';
$route['admin/team/(:any)']         = 'team_admin/$1';
$route['admin/pages/(:any)']        = 'pages_admin/$1';
