Skip to content

Commit e682b9d

Browse files
authored
Correct require of fos_js_routes.json
On line 44 the require points to the old "web" folder. It should be "public" folder.
1 parent fce90c6 commit e682b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/doc/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Then within your JavaScript development you can use:
4141

4242
.. code-block:: javascript
4343
44-
const routes = require('../../web/js/fos_js_routes.json');
44+
const routes = require('../../public/js/fos_js_routes.json');
4545
import Routing from '../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/js/router.min.js';
4646
4747
Routing.setRoutingData(routes);

0 commit comments

Comments
 (0)