diff --git a/AideDeJeu/AideDeJeuLib/Cards/Converters.cs b/AideDeJeu/AideDeJeuLib/Cards/Converters.cs index 8b95f6ea..bb911492 100644 --- a/AideDeJeu/AideDeJeuLib/Cards/Converters.cs +++ b/AideDeJeu/AideDeJeuLib/Cards/Converters.cs @@ -118,11 +118,11 @@ namespace AideDeJeuLib.Cards cardData.Icon = "white-book-" + spell.Level; cardData.IconBack = "robe"; //cardData.BackgroundImage = backgroundImage; - cardData.Tags = new string[] - { - "sort", - "magicien", - }; + //cardData.Tags = new string[] + //{ + // "sort", + // "magicien", + //}; return cardData; } public static CardData[] ToCardDatas(Spell spell) diff --git a/AideDeJeu/AideDeJeuWeb/Controllers/ValuesController.cs b/AideDeJeu/AideDeJeuWeb/Controllers/ValuesController.cs index 90d1ce5d..20938d5b 100644 --- a/AideDeJeu/AideDeJeuWeb/Controllers/ValuesController.cs +++ b/AideDeJeu/AideDeJeuWeb/Controllers/ValuesController.cs @@ -12,11 +12,11 @@ namespace AideDeJeuWeb.Controllers public class ValuesController : Controller { // GET api/values - [HttpGet] - public async Task> Get() + [HttpGet("{classe}")] + public async Task> Get(string classe) { var scrapper = new SpellsScrappers(); - var spellIds = await scrapper.GetSpellIds("c"); + var spellIds = await scrapper.GetSpellIds(classe); var spells = await scrapper.GetSpells(spellIds);