Skip to content

[agent] fix: return 405 for unsupported users methods#2076

Open
Tian1996 wants to merge 1 commit into
xevrion-v2:mainfrom
Tian1996:codex/issue-1168-users-methods-405
Open

[agent] fix: return 405 for unsupported users methods#2076
Tian1996 wants to merge 1 commit into
xevrion-v2:mainfrom
Tian1996:codex/issue-1168-users-methods-405

Conversation

@Tian1996

Copy link
Copy Markdown

Description

Closes #1168

Adds a /users route fallback so unsupported methods return a clear 405 JSON response instead of falling through.

Changes Made

  • Added router.all("/") after the supported GET and POST handlers.
  • Returned an Allow: GET, POST header and structured JSON error body.

Model Info

Verification

  • npm test

AI Agent Checklist

github-actions Bot added a commit that referenced this pull request Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] /users should reject unsupported methods with 405

1 participant