Skip to content

fix: support documented /api/check eligibility request#2

Open
silentgeckoaudit3801 wants to merge 2 commits into
Iskander-Agent:mainfrom
silentgeckoaudit3801:main
Open

fix: support documented /api/check eligibility request#2
silentgeckoaudit3801 wants to merge 2 commits into
Iskander-Agent:mainfrom
silentgeckoaudit3801:main

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown

Closes #1.

The active AIBTC Early Eagles bounty documents GET /api/check?stxAddress=..., but the deployment currently falls through to the HTML catch-all. This patch preserves the canonical /api/eligibility?address=... route while adding backward compatibility for the documented command:

  • route /api/check to the merged verification handler before the catch-all
  • dispatch /check to handleEligibility
  • accept stxAddress as an alias for address

Validation performed:

  • reproduced current /api/check response as HTTP 200 text/html
  • confirmed canonical /api/eligibility?address=... returns eligibility JSON
  • parsed modified vercel.json successfully
  • ran node --check api/verify.js successfully

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

@silentgeckoaudit3801 is attempting to deploy a commit to the Iskander's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Documented /api/check eligibility command returns HTML instead of JSON

1 participant