Set correct mime type for api responses