mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +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;
|
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
|
mapi::header
|
||||||
IRCD_MODULE
|
IRCD_MODULE
|
||||||
{
|
{
|
||||||
|
@ -34,9 +42,14 @@ invite_resource
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
resource::method
|
||||||
check_event(const resource::request &request,
|
method_put
|
||||||
const m::event &event);
|
{
|
||||||
|
invite_resource, "PUT", put__invite,
|
||||||
|
{
|
||||||
|
method_put.VERIFY_ORIGIN
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
resource::response
|
resource::response
|
||||||
put__invite(client &client,
|
put__invite(client &client,
|
||||||
|
@ -160,15 +173,6 @@ put__invite(client &client,
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
resource::method
|
|
||||||
method_put
|
|
||||||
{
|
|
||||||
invite_resource, "PUT", put__invite,
|
|
||||||
{
|
|
||||||
method_put.VERIFY_ORIGIN
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
void
|
void
|
||||||
check_event(const resource::request &request,
|
check_event(const resource::request &request,
|
||||||
const m::event &event)
|
const m::event &event)
|
||||||
|
|
Loading…
Reference in a new issue