0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 17:52:54 +01:00

modules/federation/event: Minor modernizations; fix typos.

This commit is contained in:
Jason Volk 2022-07-03 19:21:38 -07:00
parent ad4a207bdd
commit 894a2ad679

View file

@ -10,16 +10,13 @@
using namespace ircd;
mapi::header IRCD_MODULE
mapi::header
IRCD_MODULE
{
"federation event"
};
struct send
:m::resource
{
using m::resource::resource;
}
m::resource
event_resource
{
"/_matrix/federation/v1/event/",
@ -29,6 +26,19 @@ event_resource
}
};
static m::resource::response
handle_get(client &,
const m::resource::request &);
m::resource::method
method_get
{
event_resource, "GET", handle_get,
{
method_get.VERIFY_ORIGIN
}
};
m::resource::response
handle_get(client &client,
const m::resource::request &request)
@ -74,12 +84,3 @@ handle_get(client &client,
pdus.append(event);
return response;
}
m::resource::method
method_get
{
event_resource, "GET", handle_get,
{
method_get.VERIFY_ORIGIN
}
};