-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose ApiPlatform Routes #380
Comments
You can use package/for_js_routing.yaml, list the routes you want to exposer: |
Thank you for your answer @lambertbeekhuis. Can I expose all available routes with a regex, IE api_jobs_* ? EDIT: Found answer in documentation, it works!! |
For the ones that will read this later : It's easy : create (if you don't have one)
As the doc said :
If you don't know the name of the routes : Hope it will help futur reader ! |
This one also works: #[ApiResource(
operations: [
new GetCollection(
// ...
options: [
'expose' => true,
],
)
],
)]
class Foo {
} |
Hi,
I'm trying to expose my api_platform routes to FosJsRouting, but it does not work.
Does anyone have an idea to do this?
Or any other method without FosJsRouting?
The text was updated successfully, but these errors were encountered: