Viewing file: routes.php (6.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php defined('BASEPATH') OR 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: | | https://codeigniter.com/user_guide/general/routing.html | | ------------------------------------------------------------------------- | RESERVED ROUTES | ------------------------------------------------------------------------- | | There are three 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 which controller/method to use if those | provided in the URL cannot be matched to a valid route. | | $route['translate_uri_dashes'] = FALSE; | | This is not exactly a route, but allows you to automatically route | controller and method names that contain dashes. '-' isn't a valid | class or method name character, so it requires translation. | When you set this option to TRUE, it will replace ALL dashes in the | controller and method URI segments. | | Examples: my-controller/index -> my_controller/index | my-controller/my-method -> my_controller/my_method */ $route['default_controller'] = 'home';
$route['blog'] = 'home/blog'; $route['blog/(:any)'] = 'home/blog/$1';
$route['login'] = 'auth/login'; $route['register'] = 'auth/register'; $route['reset-password'] = 'auth/reset_password'; $route['reset-password/(:any)'] = 'auth/reset_password_form/$1';
$route['panel'] = 'panel'; $route['panel/numbers'] = 'panel/activations'; $route['panel/balance'] = 'panel/balance'; $route['panel/support'] = 'panel/support'; $route['panel/ticket/(:num)'] = 'panel/support_ticket/$1'; $route['panel/profile'] = 'panel/profile'; $route['panel/transactions'] = 'panel/transactions'; $route['panel/terms'] = 'panel/page/terms'; $route['panel/api'] = 'panel/page/api_doc'; $route['panel/logout'] = 'panel/logout';
$route['admin'] = 'admin'; $route['admin/users'] = 'admin/users'; $route['admin/user/(:num)'] = 'admin/user/$1'; $route['admin/tickets'] = 'admin/tickets'; $route['admin/ticket/(:num)'] = 'admin/ticket/$1'; $route['admin/services'] = 'admin/services'; $route['admin/categories'] = 'admin/categories'; $route['admin/coupons'] = 'admin/coupons'; $route['admin/service/add'] = 'admin/add_service'; $route['admin/category/add'] = 'admin/add_category'; $route['admin/coupon/add'] = 'admin/add_coupon'; $route['admin/service/(:num)'] = 'admin/service/$1'; $route['admin/category/(:num)'] = 'admin/category/$1'; $route['admin/coupon/(:num)'] = 'admin/coupon/$1'; $route['admin/settings'] = 'admin/settings'; $route['admin/page/(:num)'] = 'admin/edit_page/$1'; $route['admin/transactions/(:num)'] = 'admin/transactions/$1'; $route['admin/payments'] = 'admin/payments';
$route['panel/pay'] = 'payment/pay_card'; $route['panel/pay/callback'] = 'payment/pay_card_callback';
$route['ajax/login'] = 'auth/login_post'; $route['ajax/register'] = 'auth/register_post'; $route['ajax/reset-password'] = 'auth/reset_password_post'; $route['ajax/reset-password/post'] = 'auth/reset_password_form_post';
$route['ajax/createSupportTicket'] = 'panel/create_support_ticket'; $route['ajax/replySupportTicket'] = 'panel/reply_support_ticket'; $route['ajax/updateProfile'] = 'panel/update_profile'; $route['ajax/useCoupon'] = 'panel/use_coupon'; $route['ajax/resetApiKey'] = 'panel/reset_api_key';
$route['ajax/updateUser'] = 'admin/update_user'; $route['ajax/replySupportTicket/admin'] = 'admin/reply_support_ticket'; $route['ajax/addService'] = 'admin/add_service_ajax'; $route['ajax/addCategory'] = 'admin/add_category_ajax'; $route['ajax/addCoupon'] = 'admin/add_coupon_ajax'; $route['ajax/updateService'] = 'admin/update_service_ajax'; $route['ajax/updateCoupon'] = 'admin/update_coupon_ajax'; $route['ajax/updateCategory'] = 'admin/update_category_ajax'; $route['ajax/updateSettings'] = 'admin/update_settings_ajax'; $route['ajax/addAnnouncement'] = 'admin/add_announcement_ajax'; $route['ajax/deleteService/(:num)'] = 'admin/delete_service_ajax/$1'; $route['ajax/deleteCategory/(:num)'] = 'admin/delete_category_ajax/$1'; $route['ajax/deleteCoupon/(:num)'] = 'admin/delete_coupon_ajax/$1'; $route['ajax/editPage/(:num)'] = 'admin/update_page_ajax/$1'; $route['ajax/deleteUser/(:num)'] = 'admin/delete_user_ajax/$1'; $route['ajax/deleteAnnouncement/(:num)'] = 'admin/delete_announcement_ajax/$1'; $route['ajax/getCountries/(:any)'] = 'admin/get_countries_ajax/$1'; $route['ajax/getServices/(:any)/(:any)'] = 'admin/get_services_ajax/$1/$2'; $route['ajax/getServicePrice/(:any)/(:any)/(:any)'] = 'admin/get_service_price_ajax/$1/$2/$3';
$route['api/getServerTimestamp'] = 'api/getServerTimestamp'; $route['api/getAllServices'] = 'api/getAllServices'; $route['api/getCategories'] = 'api/getCategories';
$route['ef8797e7-b406-4311-bd9e-398ed44e8933/updatePrices'] = 'cron/updatePrices';
$route['api/getServices/(:num)'] = 'api/getServices/$1'; $route['api/getServiceDetails/(:num)'] = 'api/getServiceDetails/$1'; $route['api/(:any)/getNumber/(:num)'] = 'api/getNumber/$1/$2'; $route['api/(:any)/getMultipleNumbers/(:num)'] = 'api/getMultipleNumbers/$1/$2'; $route['api/(:any)/getMessage/(:num)'] = 'api/getMessage/$1/$2'; $route['api/(:any)/getBalance'] = 'api/getBalance/$1'; $route['api/(:any)/cancelNumber/(:num)'] = 'api/cancelNumber/$1/$2'; $route['api/(:any)/getActivations'] = 'api/getActivations/$1'; $route['api/(:any)/cancelNumber/(:num)'] = 'api/getMessage/$1/$2';
$route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE;
|