Goal: Split the path into segments and build an object whose keys are the dynamic `:param` names and whose values are strings.