refactor: Implement empty canHandle on base class. (#289)

This commit is contained in:
Ruben Verborgh
2020-10-30 17:56:39 +01:00
committed by GitHub
parent ac8423d28d
commit 1a45b65df7
19 changed files with 23 additions and 46 deletions

View File

@@ -12,10 +12,6 @@ const handle = async(input: { request: HttpRequest; response: HttpResponse }): P
};
class SimpleHttpHandler extends HttpHandler {
public async canHandle(): Promise<void> {
// Supports all HttpRequests
}
public async handle(input: { request: HttpRequest; response: HttpResponse }): Promise<void> {
return handle(input);
}