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>
|
||||
</div>
|
||||
|
||||
<HtmxForm Endpoint="/api/forms/contact">
|
||||
<HtmxForm Endpoint="/api/contact">
|
||||
<FormField Label="Full Name" For="name">
|
||||
<TextInput Id="name" Name="name" Placeholder="Jane Doe" data-testid="input-name" />
|
||||
</FormField>
|
||||
|
||||
@@ -23,7 +23,7 @@ app.MapStaticAssets();
|
||||
app.MapRazorComponents<App>()
|
||||
.AddAdditionalAssemblies(typeof(Enciphered.Blazor.UIComponents.SidebarProvider).Assembly);
|
||||
|
||||
app.MapFormValidation<ContactFormValidator, ContactFormModel>("/api/forms/contact",
|
||||
app.MapFormValidation<ContactFormValidator, ContactFormModel>("/api/contact",
|
||||
onSuccess: async model =>
|
||||
{
|
||||
Console.WriteLine("── Form Submitted ──");
|
||||
|
||||
Reference in New Issue
Block a user