diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-14 19:14:23 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-02-19 12:45:20 +0300 |
commit | b111d7012a2512cd25b367b2ca4d0b823cdb7b02 (patch) | |
tree | 69e5d60403b63f178a96ed4677c75db6cbf5d993 /appinfo | |
parent | fc5ed572844d6090829d2175aa296a773ea8c1a8 (diff) |
Add an endpoint to delete a message
For now it only creates a system message
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index fd51ff82c..db32cbd72 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -154,6 +154,16 @@ return [ ], ], [ + 'name' => 'Chat#deleteMessage', + 'url' => '/api/{apiVersion}/chat/{token}/{messageId}', + 'verb' => 'DELETE', + 'requirements' => [ + 'apiVersion' => 'v1', + 'token' => '^[a-z0-9]{4,30}$', + 'messageId' => '^[0-9]+$', + ], + ], + [ 'name' => 'Chat#setReadMarker', 'url' => '/api/{apiVersion}/chat/{token}/read', 'verb' => 'POST', |