<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "/login/dologin";
$route['login'] = "/login/dologin";
$route['logout'] = "/login/dologout";

$route['partners'] = "/pages/partners";
$route['partnersadd'] = "/pages/partnersadd";
$route['addnewpartners'] = "/c_partners/add";
$route['partnersedit/(:any)'] = "/c_partners/vEdit/$1";
$route['editpartners/(:any)'] = "/c_partners/edit/$1";
$route['partnersdelete/(:any)'] = "/c_partners/delete/$1";

$route['channel'] = "/pages/channel";
$route['channeladd'] = "/pages/channeladd";
$route['addnewchannel'] = "/c_channel/add";
$route['channeledit/(:any)'] = "/c_channel/vEdit/$1";
$route['editchannel/(:any)'] = "/c_channel/edit/$1";
$route['channeldelete/(:any)'] = "/c_channel/delete/$1";

$route['career'] = "/pages/career";
$route['careeradd'] = "/c_career/vAdd";
$route['addnewcareer'] = "/c_career/add";
$route['careeredit/(:any)'] = "/c_career/vEdit/$1";
$route['editcareer/(:any)'] = "/c_career/edit/$1";
$route['careerdelete/(:any)'] = "/c_career/delete/$1";

$route['vouchertopup'] = "/pages/vouchertopup";
$route['vouchertopupadd'] = "/pages/vouchertopupadd";
$route['vouchertopupedit/(:any)'] = "/c_topup/vEdit/$1";
$route['editvouchertopup/(:any)'] = "/c_topup/edit/$1";
$route['addnewtopup'] = "/c_topup/add";
$route['vouchertopupdelete/(:any)'] = "/c_topup/delete/$1";

$route['vouchergames'] = "/pages/vouchergames";
$route['vouchergamesadd'] = "/pages/vouchergamesadd";
$route['vouchergamesadd'] = "/pages/vouchergamesadd";
$route['vouchergamesedit/(:any)'] = "/c_games/vEdit/$1";
$route['editvouchergames/(:any)'] = "/c_games/edit/$1";
$route['addnewgames'] = "/c_games/add";
$route['vouchergamesdelete/(:any)'] = "/c_games/delete/$1";

$route['payment'] = "/pages/payment";
$route['paymentadd'] = "/pages/paymentadd";
$route['addnewpayment'] = "/c_payment/add";
$route['paymentedit/(:any)'] = "/c_payment/vEdit/$1";
$route['editpayment/(:any)'] = "/c_payment/edit/$1";
$route['paymentdelete/(:any)'] = "/c_payment/delete/$1";

$route['promotion'] = "/pages/promotion";
$route['promotionadd'] = "/pages/promotionadd";
$route['addnewpromotion'] = "/c_promotion/add";
$route['promotionedit/(:any)'] = "/c_promotion/vEdit/$1";
$route['editpromotion/(:any)'] = "/c_promotion/edit/$1";
$route['promotiondelete/(:any)'] = "/c_promotion/delete/$1";

$route['others'] = "/pages/others";
$route['othersadd'] = "/c_others/vAdd";
$route['addnewothers'] = "/c_others/add";
$route['othersedit/(:any)'] = "/c_others/vEdit/$1";
$route['editothers/(:any)'] = "/c_others/edit/$1";
$route['othersdelete/(:any)'] = "/c_others/delete/$1";

$route['news'] = "/pages/news";
$route['newsadd'] = "/c_news/vAdd";
$route['addnewnews'] = "/c_news/add";
$route['newsedit/(:any)'] = "/c_news/vEdit/$1";
$route['editnews/(:any)'] = "/c_news/edit/$1";
$route['newsdelete/(:any)'] = "/c_news/delete/$1";

/* End of file routes.php */
/* Location: ./application/config/routes.php */