blob: a00ee92d5d6f79096bc9662110130e7486b978a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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<App>,
identity: Identity,
Path(subscription): Path<Id>,
) -> Result<StatusCode, Internal> {
app.push().unregister(&identity.user, &subscription).await?;
Ok(StatusCode::NO_CONTENT)
}
|