Rename dispatches/1 to paths/1 and change its behaviour