Files
yaak/src-web/lib/sendEphemeralRequest.ts
Gregory Schier f967820f12 Model and DB refactor (#61)
- [x] Move from `sqlx` to `rusqlite`
- [x] Generate TS types from Rust models
2024-08-05 07:58:20 -07:00

12 lines
413 B
TypeScript

import type { HttpRequest, HttpResponse } from '@yaakapp/api';
import { invokeCmd } from './tauri';
export async function sendEphemeralRequest(
request: HttpRequest,
environmentId: string | null,
): Promise<HttpResponse> {
// Remove some things that we don't want to associate
const newRequest = { ...request };
return invokeCmd('cmd_send_ephemeral_request', { request: newRequest, environmentId });
}