#152 routage recherche mis a jour et géré dans RouteConfiguration.cs
This commit is contained in:
@@ -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" });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user