#64 Fix
Some checks failed
Build and Push Docker Images / build-backend (push) Successful in 16s
Build and Push Docker Images / build-frontend (push) Failing after 35s

This commit is contained in:
2026-01-16 13:11:54 +01:00
parent b4ec792cc0
commit f2c9dcc900

View File

@@ -7,6 +7,9 @@ const props = defineProps({
pin: { type: String, default: '' }
})
const config = useRuntimeConfig()
const emit = defineEmits(['success'])
const { $api } = useNuxtApp()
const toast = useToast()
@@ -75,7 +78,7 @@ const submit = async () => {
if (props.pin) headers['x-public-pin'] = props.pin
// An den Submit-Endpunkt senden (den müssen wir im Backend noch bauen!)
await $fetch(`http://localhost:3100/workflows/submit/${props.token}`, {
await $fetch(`${config.public.apiBase}/workflows/submit/${props.token}`, {
method: 'POST',
body: payload,
headers
@@ -132,6 +135,7 @@ const submit = async () => {
value-attribute="id"
placeholder="Wählen..."
searchable
searchable-placeholder="Suchen..."
/>
</UFormGroup>
@@ -147,6 +151,8 @@ const submit = async () => {
option-attribute="name"
value-attribute="id"
placeholder="Wählen..."
searchable
searchable-placeholder="Suchen..."
/>
</UFormGroup>