mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
FInalized Menu. Added first static Page...
This commit is contained in:
20
HaWeb/Controllers/BriefeContoller.cs
Normal file
20
HaWeb/Controllers/BriefeContoller.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using HaWeb.Models;
|
||||
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
public class Briefecontroller : Controller
|
||||
{
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
}
|
||||
|
||||
[Route("Briefe")]
|
||||
[Route("Briefe/{id?}")]
|
||||
public IActionResult Index(int? id) {
|
||||
return View();
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ using HaWeb.Models;
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
[Route("Edition/[action]")]
|
||||
[Route("Edition/[action]/Index")]
|
||||
public class EditionController : Controller
|
||||
{
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
@@ -37,4 +36,9 @@ public class EditionController : Controller
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Datenschutzerklaerung()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
21
HaWeb/Controllers/HomeController.cs
Normal file
21
HaWeb/Controllers/HomeController.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using HaWeb.Models;
|
||||
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
public class HomeController : Controller
|
||||
{
|
||||
|
||||
[Route("")]
|
||||
public IActionResult Index()
|
||||
{
|
||||
return Redirect("/Suche");
|
||||
}
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
}
|
||||
}
|
||||
33
HaWeb/Controllers/LegacyConroller.cs
Normal file
33
HaWeb/Controllers/LegacyConroller.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
// Handles 304 redirects to links of the old page, so permalinks stay active.\
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using HaWeb.Models;
|
||||
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
|
||||
public class LegacyContoller : Controller
|
||||
{
|
||||
[Route("Supplementa/")]
|
||||
[Route("Supplementa/Register")]
|
||||
[Route("Supplementa/Register/{id?}")]
|
||||
public IActionResult SupplementaRegister(string? id) {
|
||||
if (id != null)
|
||||
return RedirectPermanent("/Register/Register/" + id);
|
||||
return RedirectPermanent("/Register/Register");
|
||||
}
|
||||
|
||||
[Route("Supplementa/Bibelstellen")]
|
||||
public IActionResult SupplementaBibelstellen(string? id) {
|
||||
if (id != null)
|
||||
return RedirectPermanent("/Register/Bibelstellen/" + id);
|
||||
return RedirectPermanent("/Register/Bibelstellen");
|
||||
}
|
||||
|
||||
[Route("Supplementa/Forschung")]
|
||||
public IActionResult SupplementaForschung(string? id) {
|
||||
if (id != null)
|
||||
return RedirectPermanent("/Register/Forschung/" + id);
|
||||
return RedirectPermanent("/Register/Forschung");
|
||||
}
|
||||
}
|
||||
29
HaWeb/Controllers/RegisterController.cs
Normal file
29
HaWeb/Controllers/RegisterController.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using HaWeb.Models;
|
||||
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
[Route("Register/[action]/{id?}")]
|
||||
public class RegisterController : Controller
|
||||
{
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
}
|
||||
public IActionResult Register(string? id)
|
||||
{
|
||||
return View("Index");
|
||||
}
|
||||
|
||||
public IActionResult Bibelstellen(string? id)
|
||||
{
|
||||
return View("Index");
|
||||
}
|
||||
|
||||
public IActionResult Forschung(string? id)
|
||||
{
|
||||
return View("Index");
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,10 @@ using HaWeb.Models;
|
||||
|
||||
namespace HaWeb.Controllers;
|
||||
|
||||
public class SearchController : Controller
|
||||
public class SucheController : Controller
|
||||
{
|
||||
|
||||
[Route("")]
|
||||
[Route("Home")]
|
||||
[Route("Home/Index")]
|
||||
[Route("Suche")]
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View();
|
||||
Reference in New Issue
Block a user