<?php
namespace App\Domains\Stats\Providers;

use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;

class RouteServiceProvider extends ServiceProvider
{
    /**
     * Read the routes from the "api.php" and "web.php" files of this Domain
     */
    public function boot()
    {
        $app = $this->app;
        $namespace = 'App\Domains\Stats\Http\Controllers';
        $pathApi = __DIR__.'/../Routes/api.php';
        $pathWeb = __DIR__.'/../Routes/web.php';

        $this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
    }
}
