update api route