matrix-appservice
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -1,4 +0,13 @@ | ||
0.7.1 (2020-11-05) | ||
0.8.0 (2021-03-01) | ||
=================== | ||
Features | ||
-------- | ||
- Add health check endpoint ([\#38](https://github.com/matrix-org/matrix-appservice-node/issues/38)) | ||
0.7.1 (2020-11-05) | ||
=================== | ||
Internal Changes | ||
@@ -5,0 +14,0 @@ ---------------- |
@@ -116,2 +116,3 @@ /// <reference types="node" /> | ||
private onTransaction; | ||
private onHealthCheck; | ||
} |
@@ -46,2 +46,3 @@ "use strict"; | ||
app.put("/transactions/:txnId", this.onTransaction.bind(this)); | ||
app.get("/health", this.onHealthCheck.bind(this)); | ||
this.app = app; | ||
@@ -231,3 +232,6 @@ } | ||
} | ||
onHealthCheck(req, res) { | ||
res.send('OK'); | ||
} | ||
} | ||
exports.AppService = AppService; |
{ | ||
"name": "matrix-appservice", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Matrix Application Service Framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -95,2 +95,3 @@ import {Application, Request, Response, default as express} from "express"; | ||
app.put("/transactions/:txnId", this.onTransaction.bind(this)); | ||
app.get("/health", this.onHealthCheck.bind(this)); | ||
@@ -297,2 +298,6 @@ this.app = app; | ||
} | ||
private onHealthCheck(req: Request, res: Response) { | ||
res.send('OK'); | ||
} | ||
} |
77416
1599