Last active
January 4, 2023 10:15
-
-
Save benjaminudoh10/d95bffab7cd33e415d2de9de3001f82c to your computer and use it in GitHub Desktop.
Revisions
-
benjaminudoh10 revised this gist
Jan 4, 2023 . 1 changed file with 0 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +0,0 @@ -
benjaminudoh10 created this gist
Jan 4, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ import express, { Request, Response } from 'express'; const app = express(); app.use(express.json()); app.get('/health', (request: Request, response: Response) => { response .status(200) .json({ message: 'Works as expected', info: { url: `${request.protocol}://${request.hostname}${request.path}`, }, }) .end(); }); export { app }; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ import express, { Request, Response } from 'express'; const app = express(); app.use(express.json()); app.get('/health', (request: Request, response: Response) => { response .status(200) .json({ message: 'Works as expected', info: { url: `${request.protocol}://${request.hostname}${request.path}`, }, }) .end(); }); export { server };