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:
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.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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue