summaryrefslogtreecommitdiff
path: root/src/marlin.web/Controllers/HomeController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/marlin.web/Controllers/HomeController.cs')
-rw-r--r--src/marlin.web/Controllers/HomeController.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/marlin.web/Controllers/HomeController.cs b/src/marlin.web/Controllers/HomeController.cs
new file mode 100644
index 0000000..243f66d
--- /dev/null
+++ b/src/marlin.web/Controllers/HomeController.cs
@@ -0,0 +1,28 @@
+using System.Diagnostics;
+using Microsoft.AspNetCore.Mvc;
+using marlin.web.Models;
+
+namespace marlin.web.Controllers;
+
+public class HomeController : Controller
+{
+ public IActionResult Index()
+ {
+ return View();
+ }
+
+ public IActionResult Privacy()
+ {
+ return View();
+ }
+
+ [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
+ public IActionResult Error()
+ {
+ return View(
+ new ErrorViewModel
+ {
+ RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier
+ });
+ }
+} \ No newline at end of file