route/api.php routes already have the 'api' prefix set in Providers/RouteServiceProvider.php
Feb 15, 2017
3
Level 1
Duplicate api prefix in routes
I'm relatively new to Laravel Spark and I'm trying to create API routes for my application.
However, I'm having an issue with duplicate api prefixes in my routes. For instance, my login route is
/api/api/v1/login
And currently my route/api.php file looks syntactically correct
Route::group(['prefix' => 'api/v1'], function() { Route::post('login', 'Api\V1\Controllers\AuthController@login'); });
I'm guessing this is some type of config issue but I'm not sure. Any help is appreciated, thanks.
Level 8
1 like
Please or to participate in this conversation.