AnswerDotAI / AnswerDotAI/fasthtml
@rt default all-method registration shadows sibling handlers on same path
- Dominant language
- Jupyter Notebook
- Stars
- 7k
- Forks
- 319
- Avg merge
- 28m
- Merged PRs (30d)
- 3
Description
Repro: register sibling GET and POST handlers for one path, leaving methods unspecified on one route. @rt registers all methods by default and route ordering causes one sibling to shadow the other. Explicit methods=[GET] / methods=[POST] fixes it. Notes: https://github.com/lgs/iii-fasthtml-frontend/blob/main/docs/ARCHITECTURE.md#11-platform-quirks-discovered-all-worked-around-in-code. Expected: method inference or a conflict error that prevents silent sibling shadowing.
Contributor guide
Research direction
Start at the @rt route-registration entry point and read the linked ARCHITECTURE.md section on platform quirks. Reproduce sibling GET and POST handlers on one path with methods omitted, then verify that method inference or a conflict error prevents silent shadowing while explicit methods still work.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100