20 lines
547 B
PHP
Executable File
20 lines
547 B
PHP
Executable File
<?php
|
|
|
|
namespace Modules\InternalApi\Providers;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\InternalApi\app\Http\Middleware\VerifyInternalApiSignature;
|
|
|
|
class InternalApiServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap module services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Route::middleware('api')->prefix('api/internal')->group(__DIR__ . '/../routes/api.php');
|
|
app('router')->aliasMiddleware('internal.signed', VerifyInternalApiSignature::class);
|
|
}
|
|
}
|