Skip to content

Commit

Permalink
Remove addAllRoutes
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed May 24, 2024
1 parent 61b8572 commit 4df451b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/core/server/http/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ export interface IRouter {
* @internal
*/
getRoutes: () => RouterRoute[];

addAllRoutes: (routesToAdd: RouterRoute[]) => void;
}

export type ContextEnhancer<P, Q, B, Method extends RouteMethod> = (
Expand Down Expand Up @@ -263,10 +261,6 @@ export class Router implements IRouter {
return [...this.routes];
}

public addAllRoutes(routesToAdd: RouterRoute[]) {
return [...this.routes, ...routesToAdd];
}

public handleLegacyErrors = wrapErrors;

private async handle<P, Q, B>({
Expand Down

0 comments on commit 4df451b

Please sign in to comment.