osrmr is a Wrapper around the OSRM API (https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md). osrmr works with API versions 4 and 5 and can handle servers that run locally as well as the osrm webserver.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.