Middleware to reject requests to unknown routes before allocating any resources or database connections