Fix endpoint path