summaryrefslogtreecommitdiff
path: root/src/push/handlers/mod.rs
blob: 90edaa7c24a36fbd465ca082ed9fd139b836c50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use axum::extract::State;

use crate::app::App;

mod echo;
mod register;
mod unregister;

pub use echo::handler as echo;
pub use register::handler as register;
pub use unregister::handler as unregister;

pub async fn vapid(State(app): State<App>) -> String {
    app.push().public_key().to_owned()
}