Better endpoint path creation