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
@@ -5,10 +5,17 @@ use rocket::State;
use rocket_empty::EmptyResponse;
/// # Delete / Leave Server
/// Delete / Leave Server
///
/// Deletes a server if owner otherwise leaves.
#[utoipa::path(tag = "Server Information")]
#[utoipa::path(
tag = "Server Permissions",
security(("Session-Token" = []), ("Bot-Token" = [])),
params(v0::OptionsServerDelete),
responses(
(status = 204),
),
)]
#[delete("/<target>?<options..>")]
pub async fn delete(
db: &State<Database>,