created challeng endpoint and route.