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

Allow to specify a destination file to be able to group routes #25

Open
php-coder opened this issue Oct 12, 2022 · 1 comment
Open

Allow to specify a destination file to be able to group routes #25

php-coder opened this issue Oct 12, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@php-coder
Copy link
Owner

At this moment all routes are placed into a single file called routes.{lang}. It should be possible to group routes by files. I suggest to add a new parameter with a file name:

- path: /v1/categories/:categoryId
   # NOTE: there is no extension to not depend on an implementation
   # This route will be placed into `categories_routes.py` file (for Python) and included into `app.py`
   file: categories_routes
  get:
    query: SELECT id, name, name_ru, slug FROM categories WHERE id = :p.categoryId
@php-coder php-coder added the enhancement New feature or request label Oct 12, 2022
@php-coder php-coder added this to the 0.0.3 milestone Oct 12, 2022
@php-coder
Copy link
Owner Author

Should be done after #28

@php-coder php-coder self-assigned this Oct 13, 2022
@php-coder php-coder removed this from the 0.0.3 milestone Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant