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

View File

@@ -3,10 +3,15 @@ use revolt_result::Result;
use rocket::State;
use rocket_empty::EmptyResponse;
/// # Deletes a webhook
/// Deletes a webhook
///
/// Deletes a webhook with a token
#[utoipa::path(tag = "Webhooks")]
#[utoipa::path(
tag = "Webhooks",
responses(
(status = 204),
),
)]
#[delete("/<webhook_id>/<token>")]
pub async fn webhook_delete_token(
db: &State<Database>,