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