Skip to content

Commit

Permalink
feat(core): Add the search method to the adapter
Browse files Browse the repository at this point in the history
This update was really simple, because we dont need any kind of aliasing
due to fastify and express already supporting the search method for Application
  • Loading branch information
Gustrb committed Nov 7, 2022
1 parent 8432b6a commit 3b37004
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/adapters/http-adapter.ts
Expand Up @@ -80,6 +80,12 @@ export abstract class AbstractHttpAdapter<
return this.instance.listen(port, hostname, callback);
}

public search(port: string | number, callback?: () => void);
public search(port: string | number, hostname: string, callback?: () => void);
public search(port: any, hostname?: any, callback?: any) {
return this.instance.search(port, hostname, callback);
}

public getHttpServer(): TServer {
return this.httpServer as TServer;
}
Expand Down

0 comments on commit 3b37004

Please sign in to comment.