use axum::{Json, extract::State, http::StatusCode}; use crate::{ error::Internal, push::{Publish, app::Push}, token::extract::Identity, }; #[cfg(test)] mod test; #[derive(serde::Deserialize)] pub struct Request {} pub async fn handler

( State(push): State>, identity: Identity, Json(_): Json, ) -> Result where P: Publish, { push.ping(&identity.login).await?; Ok(StatusCode::ACCEPTED) }