Skip to content

Conversation

@AdaInTheLab
Copy link
Owner

🧿 Register admin token routes in main app

What changed

  • Register admin token routes in the main application (previously test-only)
  • Share route wiring between prod and test to prevent drift

Why

The admin token UI depends on these routes being available in non-test environments.
This PR ensures the endpoint exists without introducing new token workflows.

What this does not do

  • No token mint UI changes
  • No CLI token behavior
  • No API versioning

Validation

  • /admin/tokens responds in local dev
  • Admin auth gates apply as expected

- Use same-origin base by default (prevents localhost leakage in prod)
- Allow VITE_API_BASE_URL override for local dev

co-authored-by: Lyric <lyric@thehumanpatternlab.com>
co-authored-by: Carmel <carmel@thehumanpatternlab.com>
@AdaInTheLab AdaInTheLab merged commit 5960cd9 into main Jan 9, 2026
1 check passed
@AdaInTheLab AdaInTheLab deleted the fix/admin-notes-token branch January 9, 2026 18:34
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.

2 participants