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

Support using the names from named routes in servant-foreign #1673

Open
guaraqe opened this issue Apr 10, 2023 · 0 comments
Open

Support using the names from named routes in servant-foreign #1673

guaraqe opened this issue Apr 10, 2023 · 0 comments

Comments

@guaraqe
Copy link

guaraqe commented Apr 10, 2023

In many code generators one derives the name of the routes from their structure, such as getUsersByIdByGroup or something like that. It would be interesting if servant-foreign supported using the names coming from the routes when they are written as records when using NamedRoutes. That would allow for generated code that is easier to read and use.

For those who know the code, how big of a change would this be? Is there a precise point in the code where this name is chosen?

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

1 participant