This will allow the share extension to access the Bearer token to send images to the backend.
14 lines
284 B
Rust
14 lines
284 B
Rust
use tauri::{AppHandle, command, Runtime};
|
|
|
|
use crate::models::*;
|
|
use crate::Result;
|
|
use crate::IosSharedTokenExt;
|
|
|
|
#[command]
|
|
pub(crate) async fn ping<R: Runtime>(
|
|
app: AppHandle<R>,
|
|
payload: PingRequest,
|
|
) -> Result<PingResponse> {
|
|
app.ios_shared_token().ping(payload)
|
|
}
|