Add Api path compiler pass

@Djeg That's the idea :smile: