2018-02-12 23:45:48 +01:00
|
|
|
// Matrix Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
|
|
|
|
using namespace ircd;
|
|
|
|
|
2018-02-15 22:06:49 +01:00
|
|
|
mapi::header
|
|
|
|
IRCD_MODULE
|
2018-02-12 23:45:48 +01:00
|
|
|
{
|
2018-02-15 22:06:49 +01:00
|
|
|
"Client 11.12 :Pushers"
|
2018-02-12 23:45:48 +01:00
|
|
|
};
|
|
|
|
|
2018-02-15 22:06:49 +01:00
|
|
|
ircd::resource
|
|
|
|
pushers_resource
|
2018-02-12 23:45:48 +01:00
|
|
|
{
|
2018-11-06 04:14:53 +01:00
|
|
|
"/_matrix/client/r0/pushers/",
|
2018-02-12 23:45:48 +01:00
|
|
|
{
|
2018-02-15 22:06:49 +01:00
|
|
|
"(11.12.1) Pushers",
|
2018-02-12 23:45:48 +01:00
|
|
|
resource::DIRECTORY,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
resource::response
|
2018-02-15 22:06:49 +01:00
|
|
|
get__pushers(client &client,
|
|
|
|
const resource::request &request)
|
2018-02-12 23:45:48 +01:00
|
|
|
{
|
|
|
|
return resource::response
|
|
|
|
{
|
|
|
|
client, http::OK
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-02-15 22:06:49 +01:00
|
|
|
resource::method
|
|
|
|
method_get
|
2018-02-12 23:45:48 +01:00
|
|
|
{
|
2018-02-15 22:06:49 +01:00
|
|
|
pushers_resource, "GET", get__pushers,
|
2018-02-12 23:45:48 +01:00
|
|
|
{
|
|
|
|
method_get.REQUIRES_AUTH
|
|
|
|
}
|
|
|
|
};
|