Fix endpoint path construction