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
@@ -3,10 +3,16 @@ use revolt_result::Result;
use rocket::State;
/// # Acknowledge Policy Changes
/// Acknowledge Policy Changes
///
/// Accept/acknowledge changes to platform policy.
#[utoipa::path(tag = "Policy")]
#[utoipa::path(
tag = "Policy",
security(("Session-Token" = []), ("Bot-Token" = [])),
responses(
(status = 204),
),
)]
#[post("/acknowledge")]
pub async fn acknowledge_policy_changes(db: &State<Database>, user: User) -> Result<()> {
db.acknowledge_policy_changes(&user.id).await