1
I’m learning to use Laravel as a Rest API and went to test by Postman a route that returns a string, but I can’t find an error. Returns not found.
Address: http://127.0.0.1:8000/api/dot/
<?php
use Illuminate\Http\Request;
Route::group(['prefix' => 'api'], function()
{
Route::group(['prefix' => 'ponto'], function()
{
Route::get('/', function()
{
return 'Teste';
});
});
});
Resolution: I just didn’t know it was standard to put /api to Rest.
Hello, Remove the group that is within the group and in get put: "point" in place of / I hope to have helped
– Danilo Lutz
Where did you set this route?
– Wallace Maxters