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']);
});