Skip to content

@rt default all-method registration shadows sibling handlers on same path #924

Description

@lgs

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions