forked from Snck3rs/contao-leaflet-maps
Implement custom route for data request to prevent partial rendering of the page and it's possible issues (f.e. form captcha changes) (Close #49).
This commit is contained in:
11
src/Bundle/Resources/config/routing.yml
Normal file
11
src/Bundle/Resources/config/routing.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
leaflet_layer:
|
||||
path: /layer/{layerId}
|
||||
controller: Netzmacht\Contao\Leaflet\Frontend\Action\LayerDataAction
|
||||
defaults:
|
||||
_leaflet_scope: page
|
||||
_format: geojson
|
||||
_scope: frontend
|
||||
requirements:
|
||||
_format: geojson
|
||||
context: \w+
|
||||
contextId: \d+
|
||||
Reference in New Issue
Block a user