From e682b9d223be96388dbf2e0e50b4aed3ff2719af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar?= Date: Fri, 19 Oct 2018 10:58:49 +0200 Subject: [PATCH] Correct require of fos_js_routes.json On line 44 the require points to the old "web" folder. It should be "public" folder. --- Resources/doc/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/usage.rst b/Resources/doc/usage.rst index 00bead3d..abb11279 100644 --- a/Resources/doc/usage.rst +++ b/Resources/doc/usage.rst @@ -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);