laravel-api-explorer icon indicating copy to clipboard operation
laravel-api-explorer copied to clipboard

Multiple API routes doesn't work

Open cinerosimo opened this issue 5 years ago • 0 comments

It doesn't work on Multiple API Routes. It will only run if I comment all other Route prefix on RouteServiceProvider.php

    protected function mapApiRoutes()
    {
        Route::prefix('api')
             ->middleware('api')
             ->namespace($this->namespace)
             ->group(base_path('routes/api.php'));


//        Route::prefix('api/v1/cms')
//            ->middleware('api')
//            ->namespace($this->namespace)
//            ->group(base_path('routes/cms.php'));
//
//        Route::prefix('api/v1/mobile')
//            ->middleware('api')
//            ->namespace($this->namespace)
//            ->group(base_path('routes/mobile.php'));
    }

cinerosimo avatar Dec 13 '19 07:12 cinerosimo