Route pathname to modules