更新组件和修复linux下面目录路径问题

This commit is contained in:
2018-09-27 17:09:37 +08:00
parent b0860db793
commit 2a2240b8dd
7 changed files with 815 additions and 33 deletions
+11 -2
View File
@@ -26,6 +26,7 @@ using System.Configuration;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.Extensions.Options;
using Senparc.Weixin.RegisterServices;
using Microsoft.AspNetCore.Routing.Constraints;
namespace COMCMS.Web
{
@@ -125,8 +126,16 @@ namespace COMCMS.Web
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
routes.MapRoute(
name: "article",
template: "{title}/index.html",
defaults:new { controller ="Home", action= "Article" }
);
routes.MapRoute(
name: "article2",
template: "{title}/",
defaults: new { controller = "Home", action = "Article" }
);
});
//使用环境变量