Procházet zdrojové kódy

Added default endpoint for post-logout

master
Teknikode před 10 měsíci
rodič
revize
06ffbf0220

+ 6
- 0
Teknik/Areas/User/Controllers/UserController.cs Zobrazit soubor

@@ -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
- 0
Teknik/Routes.cs Zobrazit soubor

@@ -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 },

Načítá se…
Zrušit
Uložit