From 85aa5ae16f60dad9e78bf6475a60fdacf62be14a Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 20 May 2021 16:00:59 +0100 Subject: [PATCH] More demo work, unintresting stuff --- src/Ombi.Helpers/DemoSingleton.cs | 37 ++++++++++++--------- src/Ombi/Controllers/V1/StatusController.cs | 12 ++++++- 2 files changed, 32 insertions(+), 17 deletions(-) diff --git a/src/Ombi.Helpers/DemoSingleton.cs b/src/Ombi.Helpers/DemoSingleton.cs index 79510e26c..b94c7dbb3 100644 --- a/src/Ombi.Helpers/DemoSingleton.cs +++ b/src/Ombi.Helpers/DemoSingleton.cs @@ -445,22 +445,27 @@ namespace Ombi.Helpers "Zootopia", "Zorro the Avenger", "Iron Man", -"Hulk", -"Thor", -"Avengers", -"Guardians of the Galaxy", -"Ant-Man", -"Captain America", -"Doctor Strange", -"Guardians of the Galaxy", -"Spider-Man", -"Black Panther", -"Marvel", -"Spider Man", -"SpiderMan", -"Loki", -"Winter Soldier", -"Wanda" + "Hulk", + "Thor", + "Avengers", + "Guardians of the Galaxy", + "Ant-Man", + "Captain America", + "Doctor Strange", + "Guardians of the Galaxy", + "Spider-Man", + "Black Panther", + "Marvel", + "Spider Man", + "SpiderMan", + "Loki", + "Winter Soldier", + "Wanda", + "Small Fry", + "Rex", + "Lamp life", + "Toy", + "Hawaiian" }; } } \ No newline at end of file diff --git a/src/Ombi/Controllers/V1/StatusController.cs b/src/Ombi/Controllers/V1/StatusController.cs index 074127e8b..0e16c311e 100644 --- a/src/Ombi/Controllers/V1/StatusController.cs +++ b/src/Ombi/Controllers/V1/StatusController.cs @@ -82,7 +82,17 @@ namespace Ombi.Controllers.V1 { 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(); } } } \ No newline at end of file