Skip to content

Commit 24ee43b

Browse files
author
wSedlacek
committed
feat(platform-fastify): end abstraction
1 parent 0e05de5 commit 24ee43b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/platform-fastify/adapters/fastify-adapter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@ export class FastifyAdapter<
300300
return (response as TReply).code(statusCode);
301301
}
302302

303+
public end(response: TReply, message?: string) {
304+
response.raw.end(message !== undefined ? String(message) : undefined);
305+
}
306+
303307
public render(
304308
response: TReply & { view: Function },
305309
view: string,

0 commit comments

Comments
 (0)