I prefer clearly defined routes and separated logic over large if/else if/else blocks.