Skip to content

Commit 151636e

Browse files
gioboaalan-agius4
authored andcommitted
docs: fix up createNodeRequestHandler examples
(cherry picked from commit 3db1a17)
1 parent 0b5481e commit 151636e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/angular/ssr/node/src/handler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export type NodeRequestHandlerFunction = (
5252
* } catch (error) {
5353
* next(error);
5454
* }
55-
* }));
55+
* });
5656
* ```
5757
*
5858
* @example
@@ -62,8 +62,7 @@ export type NodeRequestHandlerFunction = (
6262
* export default createNodeRequestHandler(async (req, res) => {
6363
* await app.ready();
6464
* app.server.emit('request', req, res);
65-
* res.send('Hello from Fastify with Node Next Handler!');
66-
* }));
65+
* });
6766
* ```
6867
*/
6968
export function createNodeRequestHandler<T extends NodeRequestHandlerFunction>(handler: T): T {

0 commit comments

Comments
 (0)