Skip to content

Instantly share code, notes, and snippets.

@barisbll
Created September 4, 2022 12:16
Show Gist options
  • Save barisbll/71c1205d4796d25c8c8045b5286f1b43 to your computer and use it in GitHub Desktop.
Save barisbll/71c1205d4796d25c8c8045b5286f1b43 to your computer and use it in GitHub Desktop.
ts-debug/index.ts
import express, { Request, Response } from 'express';
const app = express();
app.get('/_healthcheck', (req: Request, res: Response) => {
res.json({ uptime: process.uptime() });
});
app.get('/areWeDebugging?', (req: Request, res: Response) => {
res.json({ hellYeah: true });
});
app.listen(8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment