3
17
Fork 5
Quellcode durchsuchen

Added default endpoint for post-logout

pull/111/head
Teknikode vor 3 Jahren
Ursprung
Commit
06ffbf0220
  1. 6
      Teknik/Areas/User/Controllers/UserController.cs
  2. 7
      Teknik/Routes.cs

6
Teknik/Areas/User/Controllers/UserController.cs

@ -57,6 +57,12 @@ namespace Teknik.Areas.Users.Controllers @@ -57,6 +57,12 @@ namespace Teknik.Areas.Users.Controllers
_httpContextAccessor = httpContextAccessor;
}
[HttpGet]
public IActionResult Index()
{
return Redirect(Url.SubRouteUrl("www", "Home.Index"));
}
[HttpGet]
public IActionResult Login(string returnUrl)
{

7
Teknik/Routes.cs

@ -631,6 +631,13 @@ namespace Teknik @@ -631,6 +631,13 @@ namespace Teknik
public static void BuildUserRoutes(this IRouteBuilder routes, Config config)
{
routes.MapSubdomainRoute(
name: "User.Index",
domains: new List<string>() { config.Host },
subDomains: new List<string>() { "account" },
template: "",
defaults: new { area = "User", controller = "User", action = "Index" }
);
routes.MapSubdomainRoute(
name: "User.GetPremium",
domains: new List<string>() { config.Host },

Laden…
Abbrechen
Speichern