mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd:Ⓜ️:resource: Cleanup the json::tuple-based request template.
This commit is contained in:
parent
43f0f198f5
commit
3afae05a3e
1 changed files with 18 additions and 10 deletions
|
@ -59,17 +59,25 @@ template<class tuple>
|
|||
struct ircd::m::resource::request::object
|
||||
:ircd::resource::request::object<tuple>
|
||||
{
|
||||
const m::resource::request &r;
|
||||
const decltype(r.access_token) &access_token;
|
||||
const m::resource::request &request;
|
||||
|
||||
const decltype(r.node_id) &node_id;
|
||||
const decltype(r.user_id) &user_id;
|
||||
const decltype(request.access_token) &access_token
|
||||
{
|
||||
request.access_token
|
||||
};
|
||||
|
||||
object(m::resource::request &r)
|
||||
:ircd::resource::request::object<tuple>{r}
|
||||
,r{r}
|
||||
,access_token{r.access_token}
|
||||
,node_id{r.node_id}
|
||||
,user_id{r.user_id}
|
||||
const decltype(request.node_id) &node_id
|
||||
{
|
||||
request.node_id
|
||||
};
|
||||
|
||||
const decltype(request.user_id) &user_id
|
||||
{
|
||||
request.user_id
|
||||
};
|
||||
|
||||
object(m::resource::request &request)
|
||||
:ircd::resource::request::object<tuple>{request}
|
||||
,request{request}
|
||||
{}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue