!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html/routes/   drwxr-xr-x
Free 28.66 GB of 117.98 GB (24.29%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     api.php (5.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

use Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Route;
use 
App\Http\Controllers\Api\GeneralApiController;
use 
App\Http\Controllers\Api\ApiAuthController;
use 
App\Http\Controllers\Api\CustomerApiController;
use 
App\Http\Controllers\Api\CartApiController;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return 
$request->user();
});

  
Route::middleware(['checkKey'])->group(function () {
    
Route::get('testAPI',function () {
      return 
response()->json(['status' => 1,'message' => 'Test Done!']);
    });

    
Route::controller(GeneralApiController::class)->group(function () {
      
Route::get('/getHomePageInit','getHomePageInit');
      
Route::get('/getHomePage','getHomePage');
      
Route::get('/checkCache','checkCache');
      
Route::get('/setCacheFalse','setCacheFalse');
      
Route::get('/getNewProducts','getNewProducts');
      
Route::get('/getTrendingProducts','getTrendingProducts');
      
Route::get('/getDODProducts','getDODProducts');
      
Route::get('/getCategories','getCategories');
      
Route::get('/getManufacturers','getManufacturers');
      
Route::get('/searchProducts','searchProducts');
      
Route::get('/productDetail/{id?}','productDetails');
      
Route::post('/incrementProductView/{id?}','incrementProductView');
      
Route::get('/getProductByCategory/{id?}','getProductByCategory');
      
Route::get('/getProductByManufacturer/{id?}','getProductByManufacturer');
      
Route::get('/getPages/{id?}','getPages');
      
Route::get('checkLogin','checkLogin');
      
Route::get('getPaymentMethods','getPaymentMethods');
    });


    
Route::post('customer/store', [\App\Http\Controllers\Api\CustomerController::class, 'store']);
    
Route::post('customer/update/{id}', [\App\Http\Controllers\Api\CustomerController::class, 'update']);
    
Route::post('customer/delete/{id}', [\App\Http\Controllers\Api\CustomerController::class, 'delete']);

    
//Brand
      
Route::post('brand/store', [\App\Http\Controllers\Api\BrandController::class, 'store']);
      
Route::post('brand/update/{id}', [\App\Http\Controllers\Api\BrandController::class, 'update']);
      
Route::post('brand/delete/{id}', [\App\Http\Controllers\Api\BrandController::class, 'delete']);

      
//Product
      
Route::post('product/store', [\App\Http\Controllers\Api\ProductController::class, 'store']);
      
Route::post('product/update/{id}', [\App\Http\Controllers\Api\ProductController::class, 'update']);
      
Route::get('product/delete/{id}', [\App\Http\Controllers\Api\ProductController::class, 'delete']);

      
//Category
      
Route::post('category/store', [\App\Http\Controllers\Api\CategoryController::class, 'store']);
      
Route::post('category/update/{id}', [\App\Http\Controllers\Api\CategoryController::class, 'update']);
      
Route::post('category/delete/{id}', [\App\Http\Controllers\Api\CategoryController::class, 'delete']);

  });

    
Route::group(['prefix' => 'user'], function () {
      
Route::controller(ApiAuthController::class)->group(function () {
        
Route::post('/checkcustomer','checkcustomer');
        
Route::post('/register','register');
        
Route::post('/login','login');
        
Route::post('/loginUsingMobile','loginUsingMobile');
        
Route::post('/socialLogin','socialLogin');
        
Route::post('/socialRegister','socialRegister');
        
Route::get('/logout','logout');
        
Route::post('/forgotPassword','forgotPasswordEmail');
        
Route::post('/verifyOTP','verifyOTP');
        
Route::post('/resetPassword','resetPassword');
        
Route::get('/deleteAccount''deleteAccount');

      });

      
Route::middleware(['CustomerAuthAPI'])->group(function () {
        
Route::controller(CustomerApiController::class)->group(function () {
          
Route::get('getCustomer','getCustomerDetails');
          
Route::post('updateProfile','updateProfile');
          
Route::post('addUpdateWishlist','addUpdateWishlist');
          
Route::get('getWishlist','getWishlist');
          
Route::post('changePassword','changePassword');
          
Route::post('changeProfilePicture','changeProfilePicture');
          
Route::post('/addAddress','addAddress');
          
Route::post('/editAddress/{id?}','editAddress');
          
Route::post('/deleteAddress/{id?}','deleteAddress');
          
Route::post('/addReview','addReview');
          
Route::get('/getAdress','getAdress');
        });

        
//cart functionality
        
Route::controller(CartApiController::class)->group(function () {
          
Route::post('/addToCart','addToCart');
          
Route::get('/getCart','getCart');
          
Route::post('/updateCart','updateCart');
          
Route::post('/deleteCart','deleteCart');
          
Route::post('/applyCoupon','applyCoupon');
          
Route::get('/getCheckoutData','getCheckoutData');
          
Route::post('/selectShipping/{id?}','selectShipping');
          
Route::post('/placeOrder','placeOrder');
          
Route::get('/getOrdersList','getOrdersList');
          
Route::post('/cancelOrder','cancelOrder');
          
Route::get('getOrderTimeline/{id?}','getOrderTimeline');
        });
      });
    });

    
Route::get('/get/customers', [CustomerApiController::class, 'customers']);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0063 ]--