Add logout all endpoint.

This commit is contained in:
Jimmy Cuadra 2019-05-01 21:23:50 -07:00
parent 3037b105c7
commit c9b7b986c6
2 changed files with 19 additions and 0 deletions

View File

@ -2,3 +2,4 @@
pub mod login;
pub mod logout;
pub mod logout_all;

View File

@ -0,0 +1,18 @@
//! [POST /_matrix/client/r0/logout/all](https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-logout-all)
use ruma_api_macros::ruma_api;
ruma_api! {
metadata {
description: "Invalidates all access tokens for a user, so that they can no longer be used for authorization.",
method: POST,
name: "logout_all",
path: "/_matrix/client/r0/logout/all",
rate_limited: false,
requires_authentication: true,
}
request {}
response {}
}