use axum::{ extract::{Path, State}, http::StatusCode, }; use crate::{app::App, error::Internal, push::Id, token::extract::Identity}; pub async fn handler( State(app): State, identity: Identity, Path(subscription): Path, ) -> Result { app.push().unregister(&identity.user, &subscription).await?; Ok(StatusCode::NO_CONTENT) }