namespace BookStack\Providers;
-use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Route;
public function map()
{
$this->mapWebRoutes();
-// $this->mapApiRoutes();
+ $this->mapApiRoutes();
}
/**
* Define the "web" routes for the application.
{
Route::group([
'middleware' => 'api',
- 'namespace' => $this->namespace,
+ 'namespace' => $this->namespace . '\Api',
'prefix' => 'api',
], function ($router) {
require base_path('routes/api.php');