0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd:Ⓜ️:resource: Cleanup the json::tuple-based request template.

This commit is contained in:
Jason Volk 2020-04-12 15:21:11 -07:00
parent 43f0f198f5
commit 3afae05a3e

View file

@ -59,17 +59,25 @@ template<class tuple>
struct ircd::m::resource::request::object struct ircd::m::resource::request::object
:ircd::resource::request::object<tuple> :ircd::resource::request::object<tuple>
{ {
const m::resource::request &r; const m::resource::request &request;
const decltype(r.access_token) &access_token;
const decltype(r.node_id) &node_id; const decltype(request.access_token) &access_token
const decltype(r.user_id) &user_id; {
request.access_token
};
object(m::resource::request &r) const decltype(request.node_id) &node_id
:ircd::resource::request::object<tuple>{r} {
,r{r} request.node_id
,access_token{r.access_token} };
,node_id{r.node_id}
,user_id{r.user_id} const decltype(request.user_id) &user_id
{
request.user_id
};
object(m::resource::request &request)
:ircd::resource::request::object<tuple>{request}
,request{request}
{} {}
}; };