mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 09:36:54 +01:00
modules/client/keys: Stub keys/query for device list.
This commit is contained in:
parent
da9393016d
commit
ea8dcdf619
1 changed files with 31 additions and 3 deletions
|
@ -21,11 +21,20 @@ keys_upload_resource
|
||||||
{
|
{
|
||||||
"/_matrix/client/unstable/keys/upload/", resource::opts
|
"/_matrix/client/unstable/keys/upload/", resource::opts
|
||||||
{
|
{
|
||||||
"Keys Upload",
|
"(11.10.2.1) Keys Upload",
|
||||||
resource::DIRECTORY,
|
resource::DIRECTORY,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ircd::resource
|
||||||
|
keys_query_resource
|
||||||
|
{
|
||||||
|
"/_matrix/client/unstable/keys/query", resource::opts
|
||||||
|
{
|
||||||
|
"(11.10.2.2) Keys Query",
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
resource::response
|
resource::response
|
||||||
post__keys_upload(client &client,
|
post__keys_upload(client &client,
|
||||||
const resource::request &request)
|
const resource::request &request)
|
||||||
|
@ -37,10 +46,29 @@ post__keys_upload(client &client,
|
||||||
}
|
}
|
||||||
|
|
||||||
resource::method
|
resource::method
|
||||||
method_post
|
upload_method_post
|
||||||
{
|
{
|
||||||
keys_upload_resource, "POST", post__keys_upload,
|
keys_upload_resource, "POST", post__keys_upload,
|
||||||
{
|
{
|
||||||
method_post.REQUIRES_AUTH
|
upload_method_post.REQUIRES_AUTH
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource::response
|
||||||
|
post__keys_query(client &client,
|
||||||
|
const resource::request &request)
|
||||||
|
{
|
||||||
|
return resource::response
|
||||||
|
{
|
||||||
|
client, http::OK
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
resource::method
|
||||||
|
query_method_post
|
||||||
|
{
|
||||||
|
keys_query_resource, "POST", post__keys_query,
|
||||||
|
{
|
||||||
|
query_method_post.REQUIRES_AUTH
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue