Pass application/json in your api request's header and also use api middleware in the api routes
application/json
api