Skip to content

Commit b8c2efc

Browse files
author
siffahim
committed
:update: live response
1 parent f5143dc commit b8c2efc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ app.use('/api/v1', router);
2323

2424
//live response
2525
app.get('/', (req: Request, res: Response) => {
26+
const date = new Date(Date.now());
2627
res.send(
27-
'<h1 style="text-align:center; color:#A55FEF; font-family:Verdana;">Hey, How can I assist you today!</h1>'
28+
`<h1 style="text-align:center; color:#173616; font-family:Verdana;">Beep-beep! The server is alive and kicking.</h1>
29+
<p style="text-align:center; color:#173616; font-family:Verdana;">${date}</p>
30+
`
2831
);
2932
});
3033

0 commit comments

Comments
 (0)