aktueller stand
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { medusaFetch } from "./medusa";
|
||||
|
||||
export interface ContactRequest {
|
||||
quelle: string;
|
||||
name: string;
|
||||
email: string;
|
||||
nachricht: string;
|
||||
datenschutz: boolean;
|
||||
/** Die unsichtbare Falle. Bleibt beim Menschen leer. */
|
||||
website?: string;
|
||||
seite?: string;
|
||||
}
|
||||
|
||||
/** Schickt eine Anfrage an den Shop. Wirft mit der Meldung des Backends. */
|
||||
export async function sendContactRequest(anfrage: ContactRequest): Promise<void> {
|
||||
await medusaFetch("/store/contact", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(anfrage),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user