计划测试伪静态

This commit is contained in:
comm5v8
2019-05-19 23:43:54 +08:00
parent e181e2b568
commit ecc0c97c66
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -46,5 +46,14 @@ namespace COMCMS.Web.Controllers
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
#region 测试
[Route("{path:regex([[a-zA-Z-/]])}/index.html")]
public IActionResult Test(string path="")
{
string tel = "13332835377";
return Content(tel.Substring(tel.Length - 5)+";path:"+path);
}
#endregion
}
}