2021-10-27 16:06:17 +00:00
|
|
|
<?php
|
|
|
|
|
namespace Sarga\API\Providers;
|
|
|
|
|
use Illuminate\Routing\Router;
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2021-12-06 12:51:25 +00:00
|
|
|
use Sarga\API\Http\Middleware\Scrap;
|
2021-10-27 16:06:17 +00:00
|
|
|
|
|
|
|
|
class APIServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot(Router $router)
|
|
|
|
|
{
|
2021-11-09 17:55:21 +00:00
|
|
|
include __DIR__ . '/../Http/helpers.php';
|
2021-12-06 12:51:25 +00:00
|
|
|
|
2021-10-27 16:06:17 +00:00
|
|
|
$this->loadRoutesFrom(__DIR__.'/../Http/routes.php');
|
2022-04-23 12:22:59 +00:00
|
|
|
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'sarga-api');
|
2021-12-06 12:51:25 +00:00
|
|
|
|
|
|
|
|
$router->aliasMiddleware('scrap', Scrap::class);
|
2021-10-27 16:06:17 +00:00
|
|
|
}
|
|
|
|
|
}
|