33 lines
776 B
PHP
33 lines
776 B
PHP
<?php
|
|
|
|
namespace Modules\BiddingManagement\Providers;
|
|
|
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
class RouteServiceProvider extends ServiceProvider
|
|
{
|
|
protected string $name = 'BiddingManagement';
|
|
|
|
public function boot(): void
|
|
{
|
|
parent::boot();
|
|
}
|
|
|
|
public function map(): void
|
|
{
|
|
$this->mapApiRoutes();
|
|
$this->mapWebRoutes();
|
|
}
|
|
|
|
protected function mapWebRoutes(): void
|
|
{
|
|
Route::middleware('web')->group(module_path($this->name, '/routes/web.php'));
|
|
}
|
|
|
|
protected function mapApiRoutes(): void
|
|
{
|
|
Route::middleware('api')->prefix('api')->name('api.')->group(module_path($this->name, '/routes/api.php'));
|
|
}
|
|
}
|