Simplified API controller logic