appRoutes.js fixed to handle incorrect routes