Simplify api controller