API when online, returns: 'Route [login] not defined'

1

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.

    
asked by anonymous 21.06.2018 / 02:06

0 answers