Skip to content

Allow to include user defined routes #27

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

Closed
4 tasks done
php-coder opened this issue Oct 12, 2022 · 1 comment
Closed
4 tasks done

Allow to include user defined routes #27

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

Comments

@php-coder
Copy link
Owner

php-coder commented Oct 12, 2022

There should be a way to include custom routes. I see at least 2 ways:

  • enhance DSL to have parameters for specifying file names to include
  • use Convention Over Configuration approach where we include all files named *_routes.{ext} automatically if they exist

Plan:

  • js
  • ts
  • go
  • python
@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 added a commit that referenced this issue Oct 14, 2022
php-coder added a commit that referenced this issue Oct 14, 2022
In order to include custom routes:
- create a file <name>_routes.py
- implement endpoints and ensure that the file contains FastAPI's APIRouter named "router"

Part of #27
@php-coder php-coder reopened this Oct 14, 2022
php-coder added a commit that referenced this issue Nov 7, 2022
php-coder added a commit that referenced this issue Nov 13, 2022
php-coder added a commit that referenced this issue Nov 13, 2022
@php-coder php-coder added the decision Requires making a decision label Apr 17, 2024
php-coder added a commit that referenced this issue Apr 17, 2024
php-coder added a commit that referenced this issue Apr 17, 2024
Should be in a5de675 commit.

Relate to #27
php-coder added a commit that referenced this issue Apr 17, 2024
In order to include custom routes:
- create a file <name>_routes.js
- export a function "register" that accepts 2 arguments (express router and MySQL connection pool)

Part of #27
php-coder added a commit that referenced this issue Apr 17, 2024
In order to include custom routes:
- create a file <name>_routes.ts
- export a function "register" that accepts 2 arguments (express router and MySQL connection pool)

Part of #27
php-coder added a commit that referenced this issue Apr 17, 2024
Should be in e4c4814 commit.

Relate to #27
php-coder added a commit that referenced this issue Apr 18, 2024
In order to include custom routes:
- create a file <name>_routes.go
- define a function "register<Name>Routes" that accepts 2 arguments (router and database)

Part of #27
php-coder added a commit that referenced this issue Apr 21, 2024
php-coder added a commit that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decision Requires making a decision enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant