Core: [Question] Integrate with fos_js_routing?

Created on 12 Apr 2017  路  2Comments  路  Source: api-platform/core

Hi guys!
I want integrate with fos_js_routing bundle , for this i must add 'expose' option to route ,for example in traditional way @Route("/api/x/x", name="x_x_x", options={"expose"=true})
But I use yaml config for configuration api-platform
'My\Entity':
collectionOperations:
get:
method: 'GET'
options: {expose: true}

How to add 'options' for route,in yaml config?
Thanks!

question

Most helpful comment

I wouldn't recommend using FosJsRoutingBundle... It belongs in the bygone era where the backend and frontend were coupled.

All 2 comments

Operations are only for api-platform related routes. You should use the default routing configuration for this (either @Route with annotations or routing.yml).

I wouldn't recommend using FosJsRoutingBundle... It belongs in the bygone era where the backend and frontend were coupled.

Was this page helpful?
0 / 5 - 0 ratings