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

use crate::app::App;

mod register;
mod unregister;

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()
}