#152 routage recherche mis a jour et géré dans RouteConfiguration.cs

This commit is contained in:
b.nodon
2026-03-31 16:38:40 +02:00
parent 082e3cdf4c
commit 91d50717cd
2 changed files with 9 additions and 3 deletions

View File

@@ -8,10 +8,17 @@ public static class RouteConfiguration
public static void MapCustomRoutes(this IEndpointRouteBuilder endpoints)
{
// ----------- RECHERCHE -----------
// exemple : /artiste/boblechanteurtarpingénial
endpoints.MapControllerRoute(
name: "rechercheIndex",
pattern: "recherche",
defaults: new { controller = "Recherche", action = "Index" });
// ----------- ARTISTE -----------
// exemple : /artiste/boblechanteurtarpingénial
endpoints.MapControllerRoute(
name: "TitreDetails",
name: "ArtisteIndex",
pattern: "artiste/{nom}",
defaults: new { controller = "Artiste", action = "Index" });