0
Set a route this way in the API:
$this->router->post('/logo', 'MinhaContaLogoController@adicionarLogo')
However, my Client request sends a parameter in the URL under method POST:
/logo?fileapi154288602223716
as this route does not exist the return is 404 Not Found
No. Laravel doesn’t consider
?
on the route. The problem may be that it is sending a requestGET
on a routePOST
. The return of this is 405 (method not accepted)– Wallace Maxters
Got it! Except I can’t handle this request either as GET or POST, as I can’t handle it - la the answer I have is 404 Not Found.
– João Diego Florencio
tests there. Send a post via POSTMAN. There may be a lot of problems, including in the configuration of Apache (if you are using)
– Wallace Maxters
Put all your controller, put all the route file ... at least the way you’re doing is wrong
– novic