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

modules/federation/invite: Minor cleanup.

This commit is contained in:
Jason Volk 2019-03-30 15:25:11 -07:00
parent 98c3c15e89
commit 19ca15eff7

View file

@ -10,6 +10,14 @@
using namespace ircd;
static void
check_event(const resource::request &request,
const m::event &event);
static resource::response
put__invite(client &client,
const resource::request &request);
mapi::header
IRCD_MODULE
{
@ -34,9 +42,14 @@ invite_resource
}
};
static void
check_event(const resource::request &request,
const m::event &event);
resource::method
method_put
{
invite_resource, "PUT", put__invite,
{
method_put.VERIFY_ORIGIN
}
};
resource::response
put__invite(client &client,
@ -160,15 +173,6 @@ put__invite(client &client,
return response;
}
resource::method
method_put
{
invite_resource, "PUT", put__invite,
{
method_put.VERIFY_ORIGIN
}
};
void
check_event(const resource::request &request,
const m::event &event)