Add router for matching URI patterns to a MongoDB document