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

feat: ✨ functions/generators as handler dependencies #35

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

lucas-labs
Copy link
Owner

Allow functions and generator functions to be injected in route handlers by using inject(func).

Basically, the same as Depends(func) in FastAPI.

Ref: #34

@lucas-labs lucas-labs merged commit f31ae96 into master Aug 30, 2024
7 checks passed
@lucas-labs lucas-labs deleted the feat/functional-deps branch August 30, 2024 15:42
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

Successfully merging this pull request may close these issues.

1 participant