Skip to content

Instantly share code, notes, and snippets.

@benjaminudoh10
Last active January 4, 2023 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminudoh10/d95bffab7cd33e415d2de9de3001f82c to your computer and use it in GitHub Desktop.
Save benjaminudoh10/d95bffab7cd33e415d2de9de3001f82c to your computer and use it in GitHub Desktop.
Bullqueue blog - App instantiation
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 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment