Skip to content

Commit 8d82224

Browse files
authored
Update __init__.py
1 parent 9fc0172 commit 8d82224

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎app/routes/__init__.py‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
"""Route package."""
1+
"""Routes: the HTTP view layer.
2+
3+
One FastAPI router per area — ``auth``, ``account``, ``conversations``,
4+
``billing``, ``secrets`` — plus shared dependencies in ``limits``
5+
(rate-limit guards). These modules are deliberately thin: they wire
6+
HTTP (path/verb, dependencies, status codes, response schemas) and
7+
delegate every decision to ``app.controllers``. A controller refuses
8+
work by raising a ``DomainError``, which ``app.main`` renders as the
9+
matching HTTP response, so routes never contain business rules.
10+
"""

0 commit comments

Comments
 (0)