#152 refactor gestion route artiste:

- Route dans controller supprimé
 - Gestion route dans RouteConfiguration
This commit is contained in:
b.nodon
2026-03-31 15:27:12 +02:00
parent 92d340caa2
commit 082e3cdf4c
2 changed files with 8 additions and 3 deletions

View File

@@ -8,14 +8,20 @@ public static class RouteConfiguration
public static void MapCustomRoutes(this IEndpointRouteBuilder endpoints)
{
// --- DETAILS D'UN TITRE ---
// ----------- ARTISTE -----------
// exemple : /artiste/boblechanteurtarpingénial
endpoints.MapControllerRoute(
name: "TitreDetails",
pattern: "artiste/{nom}",
defaults: new { controller = "Artiste", action = "Index" });
// ----------- TITRE -----------
// exemple : /titre/5
endpoints.MapControllerRoute(
name: "TitreDetails",
pattern: "titre/{id}",
defaults: new { controller = "Titre", action = "Details" });
// --- TITRES PAR STYLE ---
// exemple : /titre/style/Rock
endpoints.MapControllerRoute(
name: "TitresParStyle",