This looks like an OSRM question. Yes, you do need to use the /route endpoint with the 5.x API.