webdav protal office 365 fix

This commit is contained in:
vfedosevich 2015-01-15 04:03:02 -08:00
parent 92befdea38
commit f2c54df2b0
27 changed files with 466 additions and 80 deletions

View file

@ -26,12 +26,28 @@ namespace WebsitePanel.WebDavPortal
#endregion
#region Owa
routes.MapRoute(
name: OwaRouteNames.GetFile,
url: "owa/wopi*/files/{encodedPath}/contents",
defaults: new { controller = "Owa", action = "GetFile" }
);
routes.MapRoute(
name: OwaRouteNames.CheckFileInfo,
url: "owa/wopi*/files/{encodedPath}",
defaults: new { controller = "Owa", action = "CheckFileInfo" }
);
#endregion
routes.MapRoute(
name: "Office365DocumentRoute",
url: "office365/{org}/{*pathPart}",
defaults: new { controller = "FileSystem", action = "ShowOfficeDocument", pathPart = UrlParameter.Optional }
);
routes.MapRoute(
name: FileSystemRouteNames.FilePath,
url: "{org}/{*pathPart}",