renew_file_id_handler

Function renew_file_id_handler 

Source
pub async fn renew_file_id_handler(
    __arg0: State<Arc<AppState>>,
    __arg1: Path<String>,
    __arg2: Query<RenewParams>,
) -> Result<Json<RenewResponse>, AppError>
Expand description

Rotate a file’s ID to get a new public URL. You prove ownership with the delete token. The DB updates and juicehost renames the file so it stays reachable at the new ID.