Starting from a new Laravel 11 project, attempting to make a simple REST API Server, I'm trying to remove the default content being returned when calling routes and them (for example) returning an error (see attachment)
In this case I get the error because the Accept header is not set; If it were set I'd be getting the correct response from the API I'm calling. Is there a way to remove these default responses and/or change the default response to be application/json?