Function create_rust_app::auth::controller::destroy_session
source · pub fn destroy_session(
db: &Database,
auth: &Auth,
item_id: i32
) -> Result<(), (i32, &'static str)>Expand description
/sessions/{id}
deletes the entry in the user_session with the specified item_id from
db if it’s owned by the User associated with auth
Returns Result
- Ok(
()) - Err([
StatusCode], [Message])