Route paths with parameters to callbacks.