Skip to content

fix(api): register the AI chat router once #47

Description

@CoreyLeath-code

Problem

backend/app/main.py includes the same AI chat router twice at /api/chat. This produces duplicate route registration and makes the public API contract harder to reason about.

Proposed resolution

  • Retain a single router registration.
  • Add a regression test that asserts exactly one POST /api/chat/ route is exposed.

Acceptance criteria

  • The application exposes one POST chat route.
  • Existing AI endpoint tests remain green.
  • No behavior or route path changes for clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions