HEX
Server: nginx/1.24.0
System: Linux rtfmfm 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: neo (1001)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/store.akrozia.org/routes/api.php
<?php


/*
|--------------------------------------------------------------------------
| 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::post('login', ['uses' => 'Api\AuthController@login', 'login']);


// protected
Route::group(['middleware' => ['auth:sanctum']], function () {
    Route::get('fetchProducts', ['uses' => 'Api\ProductsController@fetchProducts']);
    Route::post('storeSale', ['uses' => 'Api\ProductsController@storeSale']);

    // Route::post('storeGpDocumentReq', ['uses' => 'Api\GpDocumentsController@storeGpDocumentReq']);
    // Route::post('storeInventoryDocumentReq', ['uses' => 'Api\InventoryController@storeInventoryReq']);
    // Route::get('fetchInventoriesList/{user}', ['uses' => 'Api\InventoryController@fetchInventoriesList']);
    // Route::get('fetchInventoryLines/{user}/{inventoryId}', ['uses' => 'Api\InventoryController@fetchInventoryLines']);
    // Route::get('fetchGpList/{user}', ['uses' => 'Api\GpDocumentsController@fetchGpList']);
    // Route::get('fetchGpLines/{user}/{gpId}', ['uses' => 'Api\GpDocumentsController@fetchGpLines']);
    // Route::get('fetchOperatorsSettings', ['uses' => 'Api\OperatorController@fetchOperatorsSettings']);

    // Route::get('fetchProducts/{distributor}', ['uses' => 'Api\ClientEndpointsController@fetchProducts']);
    // Route::get('updateOrder/{orderNumber}', ['uses' => 'Api\ClientEndpointsController@updateOrder']);
    // Route::get('fetchPaymentMethods', ['uses' => 'Api\ClientEndpointsController@fetchPaymentMethods']);
});