summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-06-28 14:37:31 +0200
committerJoas Schilling <coding@schilljs.com>2021-07-07 15:37:16 +0200
commitd76631499a5764178d1fdad81d296fe3c967962a (patch)
treecc2347413522efe4321c7e1c69086a01b49319f1 /appinfo/routes.php
parent2144b606228aa40b2fc21f298a3e17ad9a754152 (diff)
Clear history
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 13dc7f1f4..26ec3ccbd 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -163,6 +163,15 @@ return [
],
],
[
+ 'name' => 'Chat#clearHistory',
+ 'url' => '/api/{apiVersion}/chat/{token}',
+ 'verb' => 'DELETE',
+ 'requirements' => [
+ 'apiVersion' => 'v1',
+ 'token' => '^[a-z0-9]{4,30}$',
+ ],
+ ],
+ [
'name' => 'Chat#deleteMessage',
'url' => '/api/{apiVersion}/chat/{token}/{messageId}',
'verb' => 'DELETE',