skip to Main Content

Seo – how to Map multiple .net core controller routes

I currently map my controller routes like this: var webApplication = builder.Build(); webApplication.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); This works great for my default scenario where I don't provide action name or id in the parameters. So for example the following routes work: https://example.com.com…

VIEW QUESTION

A Laravel post route is being reject as requiring a get

I am using Laravel 10 and have the following route defined: Route::post('bulkPromptsStore', [AppHttpControllersImageCategoryController::class, 'BulkInsertImagePrompts'])->name('bulkPromptsStore'); and in a blade file I call this in the normal way via a form <form name="app" action="bulkPromptsStore" method="post" enctype="multipart/form-data"> There follows a csrf field. However…

VIEW QUESTION
Back To Top
Search