mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Added default endpoint for post-logout
This commit is contained in:
parent
a3b59ef041
commit
06ffbf0220
@ -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)
|
||||
{
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user