Skip to content

Commit 7aca0ba

Browse files
committed
hide disabled endpoints
1 parent 1357900 commit 7aca0ba

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

routes/openapi.json.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ function getHandlersMeta() {
6060
...openAPI,
6161
},
6262
};
63+
if (item[method].tags?.includes("hidden")) {
64+
continue; // Skip hidden routes
65+
}
6366
if ($global) {
6467
globals = defu($global, globals);
6568
}

routes/repos/[owner]/[repo]/files/[branch]/[...path].ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
defineRouteMeta({
55
openAPI: {
66
description: "(disabled - redirects to raw.githubusercontent.com)",
7+
tags: ["hidden"],
78
},
89
});
910

routes/repos/[owner]/[repo]/files/[branch]/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { GithubFile } from "~types";
33
defineRouteMeta({
44
openAPI: {
55
description: "(disabled - redirects to raw.githubusercontent.com)",
6+
tags: ["hidden"],
67
},
78
});
89

0 commit comments

Comments
 (0)