diff options
author | Joas Schilling <coding@schilljs.com> | 2021-06-28 14:37:31 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-07-07 15:37:16 +0200 |
commit | d76631499a5764178d1fdad81d296fe3c967962a (patch) | |
tree | cc2347413522efe4321c7e1c69086a01b49319f1 /appinfo/routes.php | |
parent | 2144b606228aa40b2fc21f298a3e17ad9a754152 (diff) |
Clear history
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 9 |
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', |