Skip to content

Instantly share code, notes, and snippets.

@SaifRehman
Created April 9, 2020 01:54
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 SaifRehman/8597147cf256761cf901375091018f8b to your computer and use it in GitHub Desktop.
Save SaifRehman/8597147cf256761cf901375091018f8b to your computer and use it in GitHub Desktop.
import { Router } from "express";
import "reflect-metadata";
class IndexController {
public router: Router;
constructor() {
this.router = Router();
this.routes();
}
private routes() {
this.router.get("/healthz", (_, res) => {
res.status(200).send({success:"ok"});
});
}
}
export default new IndexController().router;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment