API Vollständig Umgezogen

This commit is contained in:
Moritz Utcke
2025-01-25 09:02:51 +07:00
parent 6f3ddedd96
commit 51fb7ad9b6
18 changed files with 329 additions and 113 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts">
import { addNotification } from "#components/Notifications/shared";
import { client } from "src/trpc";
import { api } from "astro-typesafe-api/client";
import { getClose } from "svelte-dialogs";
const close = getClose();
@@ -8,7 +7,7 @@
async function createTicket(e: SubmitEvent) {
e.preventDefault();
try {
await client.v1.tickets.erstellen.mutate({
await api.ticket.PUT.fetch({
beschreibung: description,
email: email,
metadata: {