API handler pattern | CodingStairs