Changed endpoint content to async method.