1
0
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:
Uncled1023 2019-01-28 18:03:59 -08:00
parent a3b59ef041
commit 06ffbf0220
2 changed files with 13 additions and 0 deletions

View File

@ -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)
{

View File

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