Files
WrenchBoradWeb/www-api/app/Config/Routes.php
T
CHIEFSOFT\ameye f77766a209 Wrench ouuth
2023-07-08 16:41:20 -04:00

204 lines
9.6 KiB
PHP

<?php
namespace Config;
// Create a new instance of our RouteCollection class.
$routes = Services::routes();
// Load the system's routing file first, so that the app and ENVIRONMENT
// can override as needed.
if (is_file(SYSTEMPATH . 'Config/Routes.php')) {
require SYSTEMPATH . 'Config/Routes.php';
}
/*
* --------------------------------------------------------------------
* Router Setup
* --------------------------------------------------------------------
*/
$routes->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/authlogin', 'WrenchOauth::apigate');
$routes->post('/en/wrench/api/v1/authstart', 'WrenchOauth::apigate');
$routes->post('/en/wrench/api/v1/faq', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/faqdata', 'WrenchFaq::apigate');
$routes->post('/en/wrench/api/v1/mynotifications', 'WrenchApi::apigate');
$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/verifysignuplink', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/completesignuplink', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/profilepasschange', 'WrenchApi::apigate'); // user reset password
$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/homebanners', '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/offersresponse', '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/updateprofile', '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/purchasehx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/stepresetpass', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageragree', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagerlist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageroffers', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageractive', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagercreatejob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagerupdatejob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagerdeletejob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/activetaskslist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familyadd', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familyupdate', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familymanage', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familysampletasks', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familysuggesttasks', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familysuggestlist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familywaitingtasks', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/recipients', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/addrecipient', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/sendreferral', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/refferhx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/countrybanks', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/accounttypes', '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/waitinginterest', '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/activejobmsglist', '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/pendingjobextend', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/pendingjobsendtome','WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/pendingjobcancel', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/assigntask', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/uploads', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/marketmessage', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/marketinterest', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/activejobstatus', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/activetaskstatus', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/payprevcard', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/paynewcard', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/paylistcard', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/payremcard', 'WrenchApi::apigate');
//$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate');
//$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
$routes->post('/en/wrench/api/v1/offersinterestlist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/offersinterestproc', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/offerinterestmsg', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/offerinterestlistmsg', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/resources', 'WrenchResources::website');
$routes->post('/en/wrench/api/v1/askresources', 'WrenchResources::aigate');
$routes->get('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
$routes->get('/en/wrench/api/v1/blogdata/(:any)', 'WrenchBlog::blogLimitedData/$1');
$routes->post('/en/wrench/api/v1/blogdata/', 'WrenchBlog::website');
//$routes->post('/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';
}