I'm testing an API that I'm developing, in localhost I'm able to do a particular request and it returns everything to me 'ok'. When doing the same test on a server, it is returning a ' Route [login] not defined. ' Being that I am not associating any authentication with my API and not associating it with my controller constructor.
public function getListById($id)
{
$user = DB::table('dbTestes')->where('id', $id)->get();
return response()->json($user);
}
//Rota API:
Route::get('/ponto/edit/{id}', 'PontoController@getListById');
* I'm accessing the same database.