fix api route