removed redundant path in endpoint.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<p class="text-muted-foreground">All input components — fully static SSR with htmx validation.</p>
|
<p class="text-muted-foreground">All input components — fully static SSR with htmx validation.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<HtmxForm Endpoint="/api/forms/contact">
|
<HtmxForm Endpoint="/api/contact">
|
||||||
<FormField Label="Full Name" For="name">
|
<FormField Label="Full Name" For="name">
|
||||||
<TextInput Id="name" Name="name" Placeholder="Jane Doe" data-testid="input-name" />
|
<TextInput Id="name" Name="name" Placeholder="Jane Doe" data-testid="input-name" />
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ app.MapStaticAssets();
|
|||||||
app.MapRazorComponents<App>()
|
app.MapRazorComponents<App>()
|
||||||
.AddAdditionalAssemblies(typeof(Enciphered.Blazor.UIComponents.SidebarProvider).Assembly);
|
.AddAdditionalAssemblies(typeof(Enciphered.Blazor.UIComponents.SidebarProvider).Assembly);
|
||||||
|
|
||||||
app.MapFormValidation<ContactFormValidator, ContactFormModel>("/api/forms/contact",
|
app.MapFormValidation<ContactFormValidator, ContactFormModel>("/api/contact",
|
||||||
onSuccess: async model =>
|
onSuccess: async model =>
|
||||||
{
|
{
|
||||||
Console.WriteLine("── Form Submitted ──");
|
Console.WriteLine("── Form Submitted ──");
|
||||||
|
|||||||
Reference in New Issue
Block a user