Skip to content

Commit

Permalink
Filter undocumented endpoints links
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Nov 23, 2024
1 parent b246807 commit 3ff2cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/layout/api-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function setApiRouteLayoutContext(
}
file.title = metadata.title
file.path = route.path
file.endpoints = route.endpoints.map(({ path, name, description }) => ({
file.endpoints = route.endpoints.filter(({ isUndocumented }) => !isUndocumented).map(({ path, name, description }) => ({
path,
name,
description: getFirstParagraph(description),
Expand Down

0 comments on commit 3ff2cfb

Please sign in to comment.