File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ async function generateRoutes() {
2424 ENDPOINTS . concat ( WORKAROUNDS ) . forEach ( endpoint => {
2525 const scope = endpoint . scope ;
2626
27+ if ( endpoint . isLegacy && ! / ^ \/ t e a m s \/ \{ t e a m _ i d \} / . test ( endpoint . url ) ) {
28+ // ignore legacy endpoints with the exception of the new teams legacy methods
29+ return ;
30+ }
31+
2732 if ( ! newRoutes [ scope ] ) {
2833 newRoutes [ scope ] = { } ;
2934 }
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ generateRoutes();
1515async function generateRoutes ( ) {
1616 const examples = ENDPOINTS . concat ( WORKAROUNDS )
1717 . map ( endpoint => {
18+ if ( endpoint . isLegacy && ! / ^ \/ t e a m s \/ \{ t e a m _ i d \} / . test ( endpoint . url ) ) {
19+ // ignore legacy endpoints with the exception of the new teams legacy methods
20+ return ;
21+ }
22+
1823 const paramNames = endpoint . parameters
1924 . filter ( parameter => ! parameter . alias )
2025 . filter ( parameter => ! parameter . name . includes ( "." ) )
You can’t perform that action at this time.
0 commit comments