setDefaultNamespace('App\Controllers'); $routes->setDefaultController('Home'); $routes->setDefaultMethod('index'); $routes->setTranslateURIDashes(false); $routes->set404Override(); // The Auto Routing (Legacy) is very dangerous. It is easy to create vulnerable apps // where controller filters or CSRF protection are bypassed. // If you don't want to define all routes, please use the Auto Routing (Improved). // Set `$autoRoutesImproved` to true in `app/Config/Feature.php` and set the following to true. // $routes->setAutoRoute(false); /* * -------------------------------------------------------------------- * Route Definitions * -------------------------------------------------------------------- */ // We get a performance increase by specifying the default // route since we don't have to scan directories. $routes->get('/', 'Home::index'); $routes->get('/en/wrench/api/v1/test','Home::test'); $routes->post('/en/wrench/api/v1/apigate', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/generics', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/createuser', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/createmobileuser', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/completemobileuser', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/startresetpasword', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/userlogin', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate'); $routes->get('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/dashdata', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/getjobsdata', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/offerslist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/activejoblist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/loadprofile', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/account', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/message', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/pendingjob', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/paymenthx', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/getjob', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/mybanklist', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/sendmoney', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/sendinterest', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/sendmoneyfee', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/getpendingjobs', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/taskmessage', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/sendtaskmessage', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/getwallets', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/sitecontact', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/signupcountry', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/userscards', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/couponhx', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/couponpending', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/couponredeem', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/sendinterestmessage', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/replyinterestmessage', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/disableaccount', 'WrenchApi::apigate'); $routes->post('/en/wrench/api/v1/myjobs', 'WrenchApi::apigate'); //$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate'); //$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate'); $routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website'); $routes->get('/en/wrench/api/v1/blogdata/(:any)', 'WrenchBlog::blogLimitedData/$1'); /* * -------------------------------------------------------------------- * Additional Routing * -------------------------------------------------------------------- * * There will often be times that you need additional routing and you * need it to be able to override any defaults in this file. Environment * based routes is one such time. require() additional route files here * to make that happen. * * You will have access to the $routes object within that file without * needing to reload it. */ if (is_file(APPPATH . 'Config/' . ENVIRONMENT . '/Routes.php')) { require APPPATH . 'Config/' . ENVIRONMENT . '/Routes.php'; }