update endpoint route