I inherited a code base that uses FOSJsRouting bundle to provide route generation in javascript, but I'm having a hard time understanding what benefit that offers.

Assuming that you have a route:

/** * @Route("/some/resource/{param}/{otherParam}", name="some_symfony_route_name", options={"expose"=true}) */

Why would you want to build URIs using route names:

$.post(Routing.generate('some_symfony_route_name',{param: 1, otherParam: 2}) /*...*/ )

rather than using the established API endpoints?