I'm trying to use Google Dialogflow to catch what the user says to a Google Home, send it to my server and then send a dynamic response. Dialogflow sends a POST request to my server which has Laravel.
I only use Laravel in API mode so I'd like my route to be in api.php file, but the request is always return a 404 error, while it's working when I put my route in web.php file.
This is working in web.php, not in api.php
Route::post('/api', 'ApiController@sendResponse');