Skip to content

Commit

Permalink
Correct require of fos_js_routes.json
Browse files Browse the repository at this point in the history
On line 44 the require points to the old "web" folder. It should be "public" folder.
  • Loading branch information
Blancowicz committed Oct 19, 2018
1 parent fce90c6 commit e682b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/doc/usage.rst
Expand Up @@ -41,7 +41,7 @@ Then within your JavaScript development you can use:

.. code-block:: javascript
const routes = require('../../web/js/fos_js_routes.json');
const routes = require('../../public/js/fos_js_routes.json');
import Routing from '../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/js/router.min.js';
Routing.setRoutingData(routes);
Expand Down

0 comments on commit e682b9d

Please sign in to comment.