Skip to content

fix GetChannelKey AdminAuth -> RootAuth - #2208

Merged
Calcium-Ion merged 1 commit into
QuantumNous:mainfrom
seefs001:fix/get-channel-key
Nov 11, 2025
Merged

Calcium-Ion merged 1 commit into
QuantumNous:mainfrom
seefs001:fix/get-channel-key

Conversation

@seefs001

@seefs001 seefs001 commented Nov 11, 2025 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Reorganized the channel key retrieval endpoint from /api/channel/:id/key to /api/ratio_sync/:id/key. All functionality and security features remain unchanged.

@coderabbitai

coderabbitai Bot commented Nov 11, 2025 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

Walkthrough

The channel key retrieval endpoint has been relocated from the /api/channel/:id/key path to /api/ratio_sync/:id/key path. The handler (GetChannelKey) and middleware stack (CriticalRateLimit, DisableCache, SecureVerificationRequired) remain unchanged. This represents a routing surface modification within the API router.

Changes

Cohort / File(s) Summary
Route reorganization
router/api-router.go
Moved POST endpoint for channel key retrieval from /api/channel/:id/key to /api/ratio_sync/:id/key while preserving handler (GetChannelKey) and middleware (CriticalRateLimit, DisableCache, SecureVerificationRequired)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single-file change with straightforward endpoint relocation
  • No handler logic or middleware semantics altered
  • Verify the route path change doesn't break dependent systems or documentation

Poem

🐰 A hop and a skip, the endpoint takes flight,
From channel to ratio_sync, a cleaner delight!
Same handler, same guards, just a path rearranged,
The rabbit approves—routing beautifully changed! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between af0f542 and e2d8809.

📒 Files selected for processing (1)
  • router/api-router.go (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Calcium-Ion
Calcium-Ion merged commit f90f5ce into QuantumNous:main Nov 11, 2025
ennnnny pushed a commit to ennnnny/new-api that referenced this pull request Mar 17, 2026
salem-2007 added a commit to salem-2007/new-api that referenced this pull request Sep 10, 2026
junjundesk pushed a commit to junjundesk/new-api that referenced this pull request Oct 3, 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.

2 participants