removed redundant path in endpoint.

This commit is contained in:
2026-04-13 19:06:23 +05:00
parent 5668cf20d9
commit 4411307383
2 changed files with 2 additions and 2 deletions
@@ -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 ──");