mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +01:00
modules/client/devices: Use permanent redirect resource for /unstable/.
This commit is contained in:
parent
9d0542a93a
commit
5b833ce6af
1 changed files with 2 additions and 28 deletions
|
@ -26,10 +26,11 @@ devices_resource
|
|||
}
|
||||
};
|
||||
|
||||
ircd::resource
|
||||
ircd::resource::redirect::permanent
|
||||
devices_resource__unstable
|
||||
{
|
||||
"/_matrix/client/unstable/devices/",
|
||||
"/_matrix/client/r0/devices/",
|
||||
{
|
||||
"(11.9) Device Management",
|
||||
resource::DIRECTORY,
|
||||
|
@ -110,15 +111,6 @@ method_get
|
|||
}
|
||||
};
|
||||
|
||||
resource::method
|
||||
method_get__unstable
|
||||
{
|
||||
devices_resource__unstable, "GET", get__devices,
|
||||
{
|
||||
method_get__unstable.REQUIRES_AUTH
|
||||
}
|
||||
};
|
||||
|
||||
resource::response
|
||||
put__devices(client &client,
|
||||
const resource::request &request)
|
||||
|
@ -168,15 +160,6 @@ method_put
|
|||
}
|
||||
};
|
||||
|
||||
resource::method
|
||||
method_put__unstable
|
||||
{
|
||||
devices_resource__unstable, "PUT", put__devices,
|
||||
{
|
||||
method_put__unstable.REQUIRES_AUTH
|
||||
}
|
||||
};
|
||||
|
||||
resource::response
|
||||
delete__devices(client &client,
|
||||
const resource::request &request)
|
||||
|
@ -219,12 +202,3 @@ method_delete
|
|||
method_delete.REQUIRES_AUTH
|
||||
}
|
||||
};
|
||||
|
||||
resource::method
|
||||
method_delete__unstable
|
||||
{
|
||||
devices_resource__unstable, "DELETE", delete__devices,
|
||||
{
|
||||
method_delete__unstable.REQUIRES_AUTH
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue