Align commerce module with the monorepo module structure by updating all namespaces to use the Core\Mod\Commerce convention. This change supports the recent monorepo separation and ensures consistency with other modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Core\Mod\Commerce\Controllers\MatrixTrainingController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Commerce Matrix Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::prefix('commerce')->name('commerce.')->group(function () {
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Permission Matrix Training Routes
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
Route::prefix('matrix')->name('matrix.')->group(function () {
|
|
// Training submission (POST form from train-prompt view)
|
|
Route::post('/train', [MatrixTrainingController::class, 'train'])
|
|
->name('train');
|
|
|
|
// Pending requests view
|
|
Route::get('/pending', [MatrixTrainingController::class, 'pending'])
|
|
->name('pending');
|
|
|
|
// Bulk training
|
|
Route::post('/bulk-train', [MatrixTrainingController::class, 'bulkTrain'])
|
|
->name('bulk-train');
|
|
});
|
|
|
|
});
|