mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-30 15:06:06 +00:00
Webapp fonctionnelle, à nettoyer et améliorer avant publication sur Azure
This commit is contained in:
parent
c230fe4362
commit
c82db7aeb2
2 changed files with 8 additions and 8 deletions
|
|
@ -118,11 +118,11 @@ namespace AideDeJeuLib.Cards
|
||||||
cardData.Icon = "white-book-" + spell.Level;
|
cardData.Icon = "white-book-" + spell.Level;
|
||||||
cardData.IconBack = "robe";
|
cardData.IconBack = "robe";
|
||||||
//cardData.BackgroundImage = backgroundImage;
|
//cardData.BackgroundImage = backgroundImage;
|
||||||
cardData.Tags = new string[]
|
//cardData.Tags = new string[]
|
||||||
{
|
//{
|
||||||
"sort",
|
// "sort",
|
||||||
"magicien",
|
// "magicien",
|
||||||
};
|
//};
|
||||||
return cardData;
|
return cardData;
|
||||||
}
|
}
|
||||||
public static CardData[] ToCardDatas(Spell spell)
|
public static CardData[] ToCardDatas(Spell spell)
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@ namespace AideDeJeuWeb.Controllers
|
||||||
public class ValuesController : Controller
|
public class ValuesController : Controller
|
||||||
{
|
{
|
||||||
// GET api/values
|
// GET api/values
|
||||||
[HttpGet]
|
[HttpGet("{classe}")]
|
||||||
public async Task<IEnumerable<CardData>> Get()
|
public async Task<IEnumerable<CardData>> Get(string classe)
|
||||||
{
|
{
|
||||||
var scrapper = new SpellsScrappers();
|
var scrapper = new SpellsScrappers();
|
||||||
var spellIds = await scrapper.GetSpellIds("c");
|
var spellIds = await scrapper.GetSpellIds(classe);
|
||||||
var spells = await scrapper.GetSpells(spellIds);
|
var spells = await scrapper.GetSpells(spellIds);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue