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,6 @@
import { dialogs } from "../../../svelte-dialogs.config";
import { addNotification } from "#components/Notifications/shared";
import { client } from "src/trpc";
import { dialogs } from "../../../svelte-dialogs.config.js";
import { addNotification } from "#components/Notifications/shared.js";
import { api } from "astro-typesafe-api/client";
export async function spawnSignupPrompt() {
const result = await dialogs.prompt(
@@ -46,7 +46,7 @@ export async function spawnSignupPrompt() {
const [vorname, name, email, passwort] = result;
try {
const response = await client.v1.benutzer.erstellen.mutate({
const response = await api.user.PUT.fetch({
email,
passwort,
vorname,