DOIOU/DOIOU.Server/Controllers/InfoController.cs

40 lines
882 B
C#
Raw Permalink Normal View History

2024-06-14 13:49:30 +02:00
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace DOIOU.Server.Controllers
{
[Route("/info")]
public class InfoController : Controller
{
private readonly ILogger<InfoController> _logger;
public InfoController(ILogger<InfoController> logger)
{
_logger = logger;
}
[HttpGet]
public IActionResult Index()
{
return View();
}
[HttpGet("faq")]
public IActionResult FAQ()
{
return View("FAQ");
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View("Error!");
}
}
}