23 lines
574 B
PHP
23 lines
574 B
PHP
<?php
|
|
namespace Sarga\API\Providers;
|
|
use Illuminate\Routing\Router;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Sarga\API\Http\Middleware\Scrap;
|
|
|
|
class APIServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot(Router $router)
|
|
{
|
|
include __DIR__ . '/../Http/helpers.php';
|
|
|
|
$this->loadRoutesFrom(__DIR__.'/../Http/routes.php');
|
|
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'sarga-api');
|
|
|
|
$router->aliasMiddleware('scrap', Scrap::class);
|
|
}
|
|
} |