[PR #7318] [MERGED] docs: hide method/url from server-only API documentation #24124

Closed
opened 2026-04-15 22:11:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7318
Author: @Bekacru
Created: 1/13/2026
Status: Merged
Merged: 1/13/2026
Merged by: @Bekacru

Base: canaryHead: claude/slack-remove-method-url-docs-KOcNI


📝 Commits (1)

  • 57ba9fc docs: hide method/url from server-only API documentation

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/components/api-method.tsx (+1 -1)

📄 Description

Server-only APIs are not accessible over HTTP, but the documentation was showing method and URL which confused users into thinking they could call these endpoints directly. This hides the endpoint display for server-only APIs.

Closes #7315


Summary by cubic

Hide HTTP method and URL in docs for server-only APIs so users don’t think they can call them over HTTP. APIMethod now skips Endpoint rendering when isServerOnly, addressing #7315.

Written for commit 57ba9fc30e. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7318 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 1/13/2026 **Status:** ✅ Merged **Merged:** 1/13/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `claude/slack-remove-method-url-docs-KOcNI` --- ### 📝 Commits (1) - [`57ba9fc`](https://github.com/better-auth/better-auth/commit/57ba9fc30ed24a6be7bf55e4db089b1dc664949b) docs: hide method/url from server-only API documentation ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/api-method.tsx` (+1 -1) </details> ### 📄 Description Server-only APIs are not accessible over HTTP, but the documentation was showing method and URL which confused users into thinking they could call these endpoints directly. This hides the endpoint display for server-only APIs. Closes #7315 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Hide HTTP method and URL in docs for server-only APIs so users don’t think they can call them over HTTP. APIMethod now skips Endpoint rendering when isServerOnly, addressing #7315. <sup>Written for commit 57ba9fc30ed24a6be7bf55e4db089b1dc664949b. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:11:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24124