Created
April 9, 2020 01:54
-
-
Save SaifRehman/8597147cf256761cf901375091018f8b to your computer and use it in GitHub Desktop.
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 characters
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