Because the file is not in this version and I mean routes/api.php
. This version only includes a single file routes.php
my problem is that I could define api routes in this version. I'm currently doing it in a web:
Route::get('/api/menus','Api\MenusController@index');
which is not even good, because in >route list
is using the middleware web, therefore it works but it is not the right thing to do separation of both branches.
Then then ...
What can I do to configure the api routes?