Axios utility functions to automatically handle extracting dynamic route parameters from url segments