1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 14:35:45 +00:00

Webapp fonctionnelle, à nettoyer et améliorer avant publication sur Azure

This commit is contained in:
Yan Maniez 2018-05-07 00:57:13 +02:00
parent c230fe4362
commit c82db7aeb2
2 changed files with 8 additions and 8 deletions

View file

@ -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)

View file

@ -12,11 +12,11 @@ namespace AideDeJeuWeb.Controllers
public class ValuesController : Controller
{
// GET api/values
[HttpGet]
public async Task<IEnumerable<CardData>> Get()
[HttpGet("{classe}")]
public async Task<IEnumerable<CardData>> 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);