API Vollständig Umgezogen
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user