Skip to content
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

Custom Route Settings not showing up #21

Open
Misco opened this issue Sep 3, 2024 · 3 comments
Open

Custom Route Settings not showing up #21

Misco opened this issue Sep 3, 2024 · 3 comments

Comments

@Misco
Copy link

Misco commented Sep 3, 2024

Hello, i have checked Custom Route, but nothing happens and i can not find a route in the bundle. C 5.3.13

@markocupic
Copy link
Owner

Wie rufst du die Route denn auf? https://mydomain.ch/my_custom wäre richtig

@Misco
Copy link
Author

Misco commented Sep 8, 2024

Maybe i misunderstand this. Wanna work first time with Route, to handle API Calls.
Where is the Path defined? Where is the Class to handle Requests?

@markocupic
Copy link
Owner

The route is defined in the controller class itself.
You can use php8 attributes to achieve this.

See Symfony documentation:

https://symfony.com/doc/current/controller.html#mapping-a-url-to-a-controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants