how to get the current page endpoint

how to get the current page endpoint