summaryrefslogtreecommitdiff
path: root/Pages/Index.cshtml.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2025-08-17 22:10:27 +1000
committerJake Mannens <jake@asger.xyz>2025-08-18 10:59:28 +1000
commit6c53f3dc43f072dce4ffe4a1bd306074dd20ff39 (patch)
tree494335104504dca462a3837c3993e2add8e72bad /Pages/Index.cshtml.cs
Initial commit
Diffstat (limited to 'Pages/Index.cshtml.cs')
-rw-r--r--Pages/Index.cshtml.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Pages/Index.cshtml.cs b/Pages/Index.cshtml.cs
new file mode 100644
index 0000000..e03a330
--- /dev/null
+++ b/Pages/Index.cshtml.cs
@@ -0,0 +1,15 @@
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+
+namespace HyperBooru.Pages;
+
+public class IndexModel : PageModel {
+ public IEnumerable<DbMedia> Media => db.Media;
+
+ private HyperBooruDbContext db;
+
+ public IndexModel(HyperBooruDbContext db) =>
+ this.db = db;
+
+ public void OnGet() {}
+} \ No newline at end of file