Adjusted the architecture to be two routes.

Using two routes instead of one large one with conditional statements.