matrix-dimension/src/api/dimension/DimensionHealthService.ts
2018-03-30 16:34:39 -06:00

16 lines
395 B
TypeScript

import { GET, Path } from "typescript-rest";
import { LogService } from "matrix-js-snippets";
/**
* API for the health of Dimension
*/
@Path("/api/v1/dimension/health")
export class DimensionHealthService {
@GET
@Path("heartbeat")
public async heartbeat(): Promise<any> {
LogService.info("DimensionHealthService", "Heartbeat called");
return {}; // 200 OK
}
}