diff options
author | Joas Schilling <coding@schilljs.com> | 2018-08-31 11:37:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-24 16:14:00 +0300 |
commit | 54692ebac3e55846ee91291f81e0d9192a06a138 (patch) | |
tree | a150c8e5916461f6f766c24c7c834f4f4d1041b0 /appinfo | |
parent | e1e62a59b1025056baf658f0ebfadc123d72557f (diff) |
Change read marker to work on the comment id isntead of datetime
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-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 90785d003..57f47e5eb 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -121,6 +121,15 @@ return [ ], ], [ + 'name' => 'Chat#setReadMarker', + 'url' => '/api/{apiVersion}/chat/{token}/read', + 'verb' => 'POST', + 'requirements' => [ + 'apiVersion' => 'v1', + 'token' => '^[a-z0-9]{4,30}$', + ], + ], + [ 'name' => 'Chat#mentions', 'url' => '/api/{apiVersion}/chat/{token}/mentions', 'verb' => 'GET', |