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
@@ -7,10 +7,16 @@ use revolt_result::{create_error, Result};
use rocket::State;
use rocket_empty::EmptyResponse;
/// # Delete Role
/// Delete Role
///
/// Delete a server role by its id.
#[utoipa::path(tag = "Server Permissions")]
#[utoipa::path(
tag = "Server Permissions",
security(("Session-Token" = []), ("Bot-Token" = [])),
responses(
(status = 204),
),
)]
#[delete("/<target>/roles/<role_id>")]
pub async fn delete(
db: &State<Database>,