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:
parent
98c3c15e89
commit
19ca15eff7
1 changed files with 16 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue