Closed Bup3 closed 9 years ago
I can't really remember but I'm pretty sure someone alrady reported such an issue. I think it is more related to this bundle than the FOSJsRoutingBundle.
the relevant code is here https://github.com/FriendsOfSymfony/FOSRestBundle/tree/master/Routing .. @Bup3 could you have a look .. probably not sooo hard to fix this
+1
ping
+1
so anyone up for doing the work? :)
Is this a duplication from https://github.com/FriendsOfSymfony/FOSRestBundle/issues/439 ?
@lsmith77 should implement the expose
option when loading the routes, right? ( As used here?
https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/blob/master/Extractor/ExposedRoutesExtractor.php#L160)
Is there any tests for this? I've been searching but failed to see one.
Thanks!
yeah .. i think its a dupe. and no there are no tests for this as its not a feature provided by the bundle yet
I went to test this implementation with FOSJsRoutingBundle (as suggested by @lsmith77 on the PR), but I first tried to replicate the issue.
But I couldn't. The console command fos:js-routing:debug
shows the right routes when expose
option is used with annotations
and with yaml
(can we assume that will work with xml
then?)
With annotation
:
sf fos:js-routing:debug
[router] Current routes
Name Method Scheme Host Path
_demo ANY ANY ANY /demo/
With yaml
:
fos:js-routing:debug
[router] Current routes
Name Method Scheme Host Path
index GET ANY ANY /api/index.{_format}
hello PATCH ANY ANY /api/{name}/hello.{_format}
contact GET ANY ANY /api/contact.{_format}
@Bup3 can you take a look at this?
Same issue here, expose
option doesn't work with FOSRest routes.
can someone who is facing these issues check https://github.com/FriendsOfSymfony/FOSRestBundle/pull/809 and give feedback?
I confirm that #809 works as it should.
Hello,
I have a problem with the routing.yml or @Route() annotation.
I'm using this annotation.
and this routing.yml.
And
php app/console fos:js-routing:debug
is:php app/console router:debug
@willdurand said
Could you fix that please? :+1: