Changed mime type in the api controller