feat(devices): add final route required for logging in
This commit is contained in:
parent
7e779fd3c6
commit
f0eb152b7d
2 changed files with 6 additions and 0 deletions
|
|
@ -269,6 +269,11 @@ pub fn get_device_owner(user: Auth<false>) -> Ds<Xml<GetOwnProfileData>>{
|
|||
build_own_profile(user.into())
|
||||
}
|
||||
|
||||
#[post("/v1/api/people/@me/devices")]
|
||||
pub fn get_own_device(user: Auth<false>) -> Ds<Xml<GetOwnProfileData>>{
|
||||
build_own_profile(user.into())
|
||||
}
|
||||
|
||||
fn build_own_profile(user: User) -> Ds<Xml<GetOwnProfileData>> {
|
||||
let User {
|
||||
username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue