More demo work, unintresting stuff

This commit is contained in:
tidusjar 2021-05-20 16:00:59 +01:00
parent e2ed651487
commit 85aa5ae16f
2 changed files with 32 additions and 17 deletions

View file

@ -445,22 +445,27 @@ namespace Ombi.Helpers
"Zootopia", "Zootopia",
"Zorro the Avenger", "Zorro the Avenger",
"Iron Man", "Iron Man",
"Hulk", "Hulk",
"Thor", "Thor",
"Avengers", "Avengers",
"Guardians of the Galaxy", "Guardians of the Galaxy",
"Ant-Man", "Ant-Man",
"Captain America", "Captain America",
"Doctor Strange", "Doctor Strange",
"Guardians of the Galaxy", "Guardians of the Galaxy",
"Spider-Man", "Spider-Man",
"Black Panther", "Black Panther",
"Marvel", "Marvel",
"Spider Man", "Spider Man",
"SpiderMan", "SpiderMan",
"Loki", "Loki",
"Winter Soldier", "Winter Soldier",
"Wanda" "Wanda",
"Small Fry",
"Rex",
"Lamp life",
"Toy",
"Hawaiian"
}; };
} }
} }

View file

@ -82,7 +82,17 @@ namespace Ombi.Controllers.V1
{ {
var settings = await Ombi.GetSettingsAsync(); var settings = await Ombi.GetSettingsAsync();
return new { Result = settings?.Wizard ?? false}; return new { Result = settings?.Wizard ?? false };
}
[ApiExplorerSettings(IgnoreApi = true)]
[HttpGet("demo")]
public IActionResult Demo()
{
var instance = DemoSingleton.Instance;
instance.Demo = !instance.Demo;
return new OkResult();
} }
} }
} }