Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 9abb6be

Browse files
committed
Merge pull request #593 from EmmanuelVella/patch-3
Add a note about rest_no_locale.xml
2 parents 3385de9 + affa959 commit 9abb6be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bundles/create/introduction.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ routing configuration to enable the REST end point for saving content:
256256
$collection->addCollection($loader->import("@CmfCreateBundle/Resources/config/routing/rest.xml"));
257257
258258
return $collection;
259+
260+
.. tip::
261+
262+
If you don't want these routes to be prefixed by the current locale, you can
263+
use the ``@CmfCreateBundle/Resources/config/routing/rest_no_locale.xml`` file instead.
259264

260265
If you have the :doc:`MediaBundle <../media/index>` present in your project as well, you
261266
additionally need to register the route for the image upload handler:

0 commit comments

Comments
 (0)