aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-07 01:40:46 +0300
committerRoy Ben Shabat <roy.mail.net@gmail.com>2025-09-07 01:40:46 +0300
commit7ef8abb4e24ca338df631b45ae9c3e47ea8745f8 (patch)
treea9465591a3c1b132e440e735427492e4ebeb86a2 /Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs
parent404cff82fe27cc8e00b5eee4d41f825c4ba3a569 (diff)
downloadTango-7ef8abb4e24ca338df631b45ae9c3e47ea8745f8.tar.gz
Tango-7ef8abb4e24ca338df631b45ae9c3e47ea8745f8.zip
Improved vagure questions response and conversation history length and uniqueness.
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs')
-rw-r--r--Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs
index f83749f46..6f1aa5dfa 100644
--- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs
+++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs
@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
+using System.Diagnostics;
using System.Text.Json;
using Tango.Portal.Chat.Web.ViewModels;
@@ -8,6 +9,13 @@ namespace Tango.Portal.Chat.Web.Controllers
{
public IActionResult Index(String session)
{
+ if (Debugger.IsAttached)
+ {
+ HomeViewVM v = new HomeViewVM();
+ v.UserName = "debug-user";
+ return View(v);
+ }
+
String loginUrl = "https://twine-srv.com/login";
if (String.IsNullOrWhiteSpace(session)) return new RedirectResult(loginUrl);