chore: update routes to use utoipa

This commit is contained in:
Zomatree
2025-11-17 22:13:07 +00:00
parent ac60b2c795
commit 43c94b68b0
110 changed files with 891 additions and 231 deletions
+8 -2
View File
@@ -5,10 +5,16 @@ use rocket_empty::EmptyResponse;
use rocket::State;
/// # Unsubscribe
/// Unsubscribe
///
/// Remove the Web Push subscription associated with the current session.
#[utoipa::path(tag = "Web Push")]
#[utoipa::path(
tag = "Web Push",
security(("Session-Token" = [])),
responses(
(status = 204),
),
)]
#[post("/unsubscribe")]
pub async fn unsubscribe(
authifier: &State<Authifier>,