Petru Paler b1bfdfb05c refactor: move route handlers to module level for idiomatic FastHTML
- Routes are now at module level, accessible for import by templates
- Templates accept action parameter (route function or URL string)
- Routes pass themselves to templates for type-safe form actions
- Changes DB access pattern from app.state.db to request.app.state.db
- Registration uses rt(...)(func) pattern instead of @rt decorator

This enables the idiomatic FastHTML pattern where forms can use
action=route_function instead of action="/path/string", providing
type safety and refactoring support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 11:11:08 +00:00
2025-12-26 12:55:55 +00:00
Description
No description provided
1.3 MiB
Languages
Python 99.3%
Nix 0.6%
JavaScript 0.1%