mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Add a health endpoint
For monitoring
This commit is contained in:
parent
2c1366d9d7
commit
1233be85e9
11
src/api/dimension/DimensionHealthService.ts
Normal file
11
src/api/dimension/DimensionHealthService.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { GET, Path } from "typescript-rest";
|
||||
|
||||
@Path("/api/v1/dimension/health")
|
||||
export class DimensionHealthService {
|
||||
|
||||
@GET
|
||||
@Path("heartbeat")
|
||||
public async heartbeat(): Promise<any> {
|
||||
return {}; // 200 OK
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user