diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-14 19:14:23 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-02-02 15:52:24 +0300 |
commit | dd06f39ee5eccdb29955136c6713c253f65b4ec4 (patch) | |
tree | 8e6d475e0271a7445d8e9e3a42eb552c435dde2c /appinfo | |
parent | bfbce8d714ded49e5f840926e25e161dc4710015 (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', |