Required the API token for every runtime API route (#1045)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-11 10:07:07 +02:00
1 parent 4f966eed86
commit 8badadb35f
24 files changed
+231 -79

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ use axum::Json;
use log::{debug, error, warn};
use once_cell::sync::Lazy;
use serde::Serialize;
use crate::api_token::APIToken;
use crate::encryption::{EncryptedText, ENCRYPTION};
/// The process-wide clipboard instance. On Linux, retaining this instance keeps the app's
@@ -76,7 +75,7 @@ fn release_clipboard<B>(clipboard: &mut Option<B>) -> bool {
}
/// Sets the clipboard text to the provided encrypted text.
pub async fn set_clipboard(_token: APIToken, encrypted_text: String) -> Json<SetClipboardResponse> {
pub async fn set_clipboard(encrypted_text: String) -> Json<SetClipboardResponse> {
//
// The clipboard backend of the operating system may take a moment to answer, a failed write is
// retried with a fresh backend, and the lock waits for a write still running. None of this