MCPcopy Create free account
hub / github.com/RemoteState/nodejs-ecs / getInstance

Method getInstance

src/controller/healthController.ts:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 private constructor() {}
6
7 public static getInstance(): HealthController {
8 if (!HealthController.instance) {
9 HealthController.instance = new HealthController();
10 }
11 return HealthController.instance;
12 }
13
14 public async GetHealth(req: Request, res: Response, next: NextFunction) {
15 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected