summaryrefslogtreecommitdiff
path: root/DebugController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DebugController.cs')
-rw-r--r--DebugController.cs22
1 files changed, 0 insertions, 22 deletions
diff --git a/DebugController.cs b/DebugController.cs
deleted file mode 100644
index 7a87729..0000000
--- a/DebugController.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using Microsoft.AspNetCore.Mvc;
-
-namespace HyperBooru;
-
-#if DEBUG
-[ApiController]
-[Route("/debug")]
-public class DebugController : Controller {
- private HyperBooruDbContext db;
-
- public DebugController(HyperBooruDbContext db) =>
- this.db = db;
-
- [HttpGet("media")]
- public IActionResult Media() =>
- Ok(db.Media.ToList());
-
- [HttpGet("tags")]
- public IActionResult TagDefinitions() =>
- Ok(db.Tags.ToList());
-}
-#endif \ No newline at end of file