Skip to content

Commit

Permalink
ignore opeanapi endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kainpets committed Oct 9, 2023
1 parent f5b748c commit 76880c1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const parseRoutesInPackage = async (opts: {
filepaths.map(async (p) => {
const { default: routeFn } = await require(path.resolve(p))

if (routeFn._routeSpec.metaData.ignoreEndpoint) {
return;
}

if (routeFn) {
if (!routeFn._setupParams) {
console.warn(
Expand Down

0 comments on commit 76880c1

Please sign in to comment.