chess/application/config/routes.php

192 lines
6.7 KiB
PHP

<?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/userguide3/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'] = 'PageController/login';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['dashboard'] = 'Dashboard_controller/index';
$route['logout'] = 'Login_controller/logout';
$route['profile'] = 'Dashboard_controller/profile';
$route['reset_pass'] = 'Dashboard_controller/reset_pass';
$route['client_testimonial'] = 'Dashboard_controller/client_testimonial';
$route['client_testimonial/(:num)'] = 'Dashboard_controller/client_testimonial/$1';
$route['privacy_policy'] = 'Dashboard_controller/privacy_policy';
$route['terms'] = 'Dashboard_controller/terms';
$route['faq'] = 'Dashboard_controller/faq';
$route['faq/(:num)'] = 'Dashboard_controller/faq/$1';
$route['add_country'] = 'Dashboard_controller/add_country';
$route['add_country/(:num)'] = 'Dashboard_controller/add_country/$1';
$route['add_language'] = 'Dashboard_controller/add_language';
$route['add_language/(:num)'] = 'Dashboard_controller/add_language/$1';
$route['add_testi'] = 'User_management/add_testi';
$route['edit_testi'] = 'User_management/edit_testi';
$route['user_manage'] = 'Dashboard_controller/user_manage';
$route['user_manage/(:num)'] = 'Dashboard_controller/user_manage/$1';
//$route['wallet_manage'] = 'PageController/wallet_manage';
$route['wallet_manage'] = 'Dashboard_controller/wallet_manage';
$route['wallet_manage/(:num)'] = 'Dashboard_controller/wallet_manage/$1';
$route['contact_us'] = 'Dashboard_controller/contact_us';
$route['contact_us/(:num)'] = 'Dashboard_controller/contact_us/$1';
$route['time_slot'] = 'Dashboard_controller/time_slot';
//$route['index'] = 'PageController/index';
$route['view_user'] = 'User_management/view_user';
$route['view_user/(:any)'] = 'User_management/view_user/$1';
$route['view_user/(:any)'] = 'User_management/view_user/$1/$2';
$route['send_add_amount'] = 'Dashboard_controller/send_add_amount';
$route['login'] = 'PageController/login';
$route['wallet_history/(:any)'] = 'Dashboard_controller/wallet_history';
$route['wallet_history/(:any)/(:any)'] = 'Dashboard_controller/wallet_history';
$route['withdrawl_request'] = 'Dashboard_controller/withdrawl_request';
$route['manage_tournament'] = 'Dashboard_controller/manage_tournament';
$route['manage_tournament/(:num)'] = 'Dashboard_controller/manage_tournament/$1';
$route['add_tournament'] = 'Dashboard_controller/add_tournament';
$route['update'] = 'tournaments/update';
$route['update_tournament'] = 'Dashboard_controller/update_tournament';
$route['tournaments/update/(:num)'] = 'tournaments/update/$1';
$routes['tournaments/delete/(:any)'] = 'tournaments/delete/$1';
//$route['wallet_history/(:any)'] = 'PageController/wallet_history';
//wallet history pagination
//$route['wallet_history/(:any)/(:any)'] = 'PageController/wallet_history';
$route['register'] = 'PageController/register';
$route['win_games'] = 'PageController/win_games';
$route['win_games/(:any)'] = 'PageController/win_games/$1';
$route['lost_games'] = 'PageController/lost_games';
$route['lost_games/(:any)'] = 'PageController/win_games/$1';
$route['drawn_games'] = 'PageController/drawn_games';
$route['drawn_games/(:any)'] = 'PageController/drawn_games/$1';
$route['withdrawl_history/(:num)'] = 'Dashboard_controller/withdrawl_history/$1';
$route['withdrawl_history/(:num)/(:num)'] = 'Dashboard_controller/withdrawl_history/$1/$2';
$route['wallet_transaction'] = 'PageController/wallet_transaction';
$route['tournament_participant'] = 'PageController/tournament_participant';
$route['user_payment_history'] = 'PageController/user_payment_history';
$route['leaderboard'] = 'PageController/leaderboard';
$route['leaderboard/(:any)'] = 'PageController/leaderboard/$1';
$route['add_lang'] = 'PageController/add_lang';
$route['tournament_history'] = 'PageController/tournament_history';
$route['tournament_user'] = 'PageController/tournament_user';
$route['forgot_password'] = 'PageController/forgot_password';
//$route['faq'] = 'PageController/faq';
$route['first_live_tournament'] = 'PageController/first_live_tournament';
$route['second_live_tournament'] = 'PageController/second_live_tournament';
$route['choose_player'] = 'PageController/choose_player';
$route['all_round'] = 'PageController/all_round';
$route['user_join_tournament'] = 'Api/user_join_tournament';
$route['get_joined_user_tournament'] = 'Api/get_joined_user_tournament';
$route['update_user_score'] = 'Api/update_user_score';
$route['calculate_winnings'] = 'Api/calculate_winnings';
$route['get_leaderboard'] = 'Api/get_leaderboard';
$route['declare_winners'] = 'Api/declare_winners';
$route['update_tournament_user_playing_status'] = 'Api/update_tournament_user_playing_status';
$route['check_tournament_completion'] = 'Api/check_tournament_completion';
$route['get_wallet_data'] = 'Api/get_wallet_data';
$route['played_game_history'] = 'Api/played_game_history';
$route['get_leaderboard_data'] = 'Api/get_leaderboard_data';