feat: add endpoint to get logged in devices
This commit is contained in:
parent
671fc42555
commit
3647086adb
2 changed files with 60 additions and 0 deletions
|
@ -8,6 +8,7 @@ use uuid::Uuid;
|
|||
|
||||
use crate::{Conn, error::Error, schema::access_tokens::dsl};
|
||||
|
||||
mod devices;
|
||||
mod login;
|
||||
mod logout;
|
||||
mod refresh;
|
||||
|
@ -32,6 +33,7 @@ pub fn web() -> Scope {
|
|||
.service(verify_email::post)
|
||||
.service(reset_password::get)
|
||||
.service(reset_password::post)
|
||||
.service(devices::get)
|
||||
}
|
||||
|
||||
pub async fn check_access_token(access_token: &str, conn: &mut Conn) -> Result<Uuid, Error> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue