forked from jmug/stoatchat
chore: update everything to work with utoipa
This commit is contained in:
@@ -6,7 +6,7 @@ use rocket::State;
|
||||
/// # Acknowledge Policy Changes
|
||||
///
|
||||
/// Accept/acknowledge changes to platform policy.
|
||||
#[openapi(tag = "Policy")]
|
||||
#[utoipa::path(tag = "Policy")]
|
||||
#[post("/acknowledge")]
|
||||
pub async fn acknowledge_policy_changes(db: &State<Database>, user: User) -> Result<()> {
|
||||
db.acknowledge_policy_changes(&user.id).await
|
||||
|
||||
Reference in New Issue
Block a user