32 lines
816 B
C#
32 lines
816 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using PlotLine.ViewModels;
|
|
|
|
namespace PlotLine.Controllers;
|
|
|
|
[AllowAnonymous]
|
|
[Route("")]
|
|
public sealed class PublicController : Controller
|
|
{
|
|
private const string SupportEmail = "hello@plotdirector.com";
|
|
private const string PolicyDate = "June 7, 2026";
|
|
|
|
[HttpGet("About")]
|
|
public IActionResult About() => View(CreateModel());
|
|
|
|
[HttpGet("Contact")]
|
|
public IActionResult Contact() => View(CreateModel());
|
|
|
|
[HttpGet("Privacy")]
|
|
public IActionResult Privacy() => View(CreateModel());
|
|
|
|
[HttpGet("Terms")]
|
|
public IActionResult Terms() => View(CreateModel());
|
|
|
|
private static PublicPageViewModel CreateModel() => new()
|
|
{
|
|
SupportEmail = SupportEmail,
|
|
LastUpdated = PolicyDate
|
|
};
|
|
}
|