Fix route, find repo, and parse payload