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,16 @@ use revolt_models::v0::{self, InviteJoinResponse};
use revolt_result::{create_error, Result};
use rocket::{serde::json::Json, State};
/// # Join Invite
/// Join Invite
///
/// Join an invite by its ID
#[utoipa::path(tag = "Invites")]
#[utoipa::path(
tag = "Invites",
security(("Session-Token" = [])),
responses(
(status = 200, body = v0::InviteJoinResponse),
),
)]
#[post("/<target>")]
pub async fn join(
db: &State<Database>,