Only wrap API routes with JSON response