commit15
This commit is contained in:
+10
-1
@@ -27,6 +27,15 @@ Route::middleware(['auth', RequireValidSession::class])->group(function (): void
|
||||
Route::post('/api/logout', [IdentityController::class, 'logout']);
|
||||
Route::post('/api/context', [IdentityController::class, 'select']);
|
||||
Route::middleware(RequireCompanyContext::class)->group(function (): void {
|
||||
Route::get('/api/workshop-stock',[\App\Modules\Workshop\Http\WorkshopStockController::class,'index']);
|
||||
Route::post('/api/workshop-stock/prepare',[\App\Modules\Workshop\Http\WorkshopStockController::class,'prepare']);
|
||||
Route::post('/api/workshop-stock/prepare-delivery',[\App\Modules\Workshop\Http\WorkshopStockController::class,'prepareDelivery']);
|
||||
Route::post('/api/workshop-stock/prepare-allocation',[\App\Modules\Workshop\Http\WorkshopStockController::class,'prepareAllocation']);
|
||||
Route::post('/api/workshop-stock/prepare-return',[\App\Modules\Workshop\Http\WorkshopStockController::class,'prepareReturn']);
|
||||
Route::post('/api/workshop-stock/{id}/confirm',[\App\Modules\Workshop\Http\WorkshopStockController::class,'confirm'])->whereNumber('id');
|
||||
Route::post('/api/workshop-stock/{id}/withdraw',[\App\Modules\Workshop\Http\WorkshopStockController::class,'withdraw'])->whereNumber('id');
|
||||
Route::post('/api/workshop-stock/{id}/reject',[\App\Modules\Workshop\Http\WorkshopStockController::class,'reject'])->whereNumber('id');
|
||||
Route::get('/api/stock-read', [\App\Modules\Inventory\StockReadController::class,'index']);
|
||||
Route::get('/api/module-records', [\App\Modules\Identity\Http\ModuleRecordsController::class,'index']);
|
||||
Route::post('/api/module-records/preview', [\App\Modules\Identity\Http\ModuleRecordsController::class,'preview']);
|
||||
Route::post('/api/module-records', [\App\Modules\Identity\Http\ModuleRecordsController::class,'associate']);
|
||||
@@ -35,7 +44,7 @@ Route::middleware(['auth', RequireValidSession::class])->group(function (): void
|
||||
Route::get('/api/supplier-payments', [\App\Modules\Purchasing\SupplierPaymentsController::class,'index']);
|
||||
Route::post('/api/supplier-payments/{action}', [\App\Modules\Purchasing\SupplierPaymentsController::class,'command'])->whereIn('action',['payment-prepare','payment-decide','allocation-prepare','allocation-decide','reversal-prepare','reversal-confirm']);
|
||||
Route::get('/api/supplier-payables', [\App\Modules\Purchasing\SupplierPayablesController::class,'index']);
|
||||
Route::post('/api/supplier-payables/{action}', [\App\Modules\Purchasing\SupplierPayablesController::class,'command'])->whereIn('action',['prepare','validate']);
|
||||
Route::post('/api/supplier-payables/{action}', [\App\Modules\Purchasing\SupplierPayablesController::class,'command'])->whereIn('action',['prepare','validate','prepare_history','validate_history']);
|
||||
Route::get('/api/purchasing-budget', [\App\Modules\Purchasing\BudgetController::class, 'index']);
|
||||
Route::post('/api/purchasing-budget/{action}', [\App\Modules\Purchasing\BudgetController::class, 'command'])->whereIn('action', ['create', 'approve', 'movement', 'consume', 'reinforcement', 'review']);
|
||||
Route::get('/api/workshop-corrections', [\App\Modules\Workshop\Http\WorkshopCorrectionsController::class,'index']);
|
||||
|
||||
Reference in New Issue
Block a user