0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

modules/client/keys: Stub keys/query for device list.

This commit is contained in:
Jason Volk 2018-02-16 17:28:06 -08:00
parent da9393016d
commit ea8dcdf619

View file

@ -21,11 +21,20 @@ keys_upload_resource
{
"/_matrix/client/unstable/keys/upload/", resource::opts
{
"Keys Upload",
"(11.10.2.1) Keys Upload",
resource::DIRECTORY,
}
};
ircd::resource
keys_query_resource
{
"/_matrix/client/unstable/keys/query", resource::opts
{
"(11.10.2.2) Keys Query",
}
};
resource::response
post__keys_upload(client &client,
const resource::request &request)
@ -37,10 +46,29 @@ post__keys_upload(client &client,
}
resource::method
method_post
upload_method_post
{
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
}
};