Coding/BinaryDad.Coding/Controllers/HomeController.cs

26 lines
514 B
C#
Raw Normal View History

2021-07-22 23:45:32 +00:00
using Microsoft.AspNetCore.Mvc;
namespace BinaryDad.Coding.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
2021-07-22 23:48:43 +00:00
return View();
2021-07-22 23:45:32 +00:00
}
2021-07-23 00:41:12 +00:00
public bool IsBadWord(string word)
{
return false;
}
[Route("view/{connectionId}")]
public IActionResult ViewHtml(string connectionId)
{
var user = Users.Sessions[connectionId];
return View(user);
}
2021-07-22 23:45:32 +00:00
}
}