瀏覽代碼

Added default endpoint for post-logout

master
Teknikode 10 月之前
父節點
當前提交
06ffbf0220
共有 2 個文件被更改,包括 13 次插入0 次删除
  1. 6
    0
      Teknik/Areas/User/Controllers/UserController.cs
  2. 7
    0
      Teknik/Routes.cs

+ 6
- 0
Teknik/Areas/User/Controllers/UserController.cs 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存