Skip to content

More AppStateContext for less boilerplate#28

Merged
angrynode merged 5 commits intoaxumfrom
more-context
Feb 17, 2026
Merged

More AppStateContext for less boilerplate#28
angrynode merged 5 commits intoaxumfrom
more-context

Conversation

@angrynode
Copy link
Owner

Adding:

  • AppStateContext extractor
  • context.db spawning a DatabaseOperator with methods for each table
  • context.state for direct access to the state
  • context.user for authorship information

Overall by adding more stuff and methods to AppStateContext we greatly reduce boilerplate in routes.

@angrynode angrynode merged commit c754462 into axum Feb 17, 2026
1 check passed
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.

2 participants