summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-14 17:14:23 +0100
committerJoas Schilling <coding@schilljs.com>2021-02-02 13:52:24 +0100
commitdd06f39ee5eccdb29955136c6713c253f65b4ec4 (patch)
tree8e6d475e0271a7445d8e9e3a42eb552c435dde2c /appinfo
parentbfbce8d714ded49e5f840926e25e161dc4710015 (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.php10
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',