webdav portal owa editing alpha
This commit is contained in:
parent
7aa68cd775
commit
aedc7ec08e
33 changed files with 969 additions and 153 deletions
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
using WebsitePanel.WebDavPortal.DependencyInjection;
|
||||
using WebsitePanel.WebDavPortal.UI.Routes;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.App_Start
|
||||
{
|
||||
public class WebApiConfig
|
||||
{
|
||||
public static void Register(HttpConfiguration configuration)
|
||||
{
|
||||
#region Owa
|
||||
|
||||
configuration.Routes.MapHttpRoute(
|
||||
name: OwaRouteNames.GetFile,
|
||||
routeTemplate: "owa/wopi*/files/{accessTokenId}/contents",
|
||||
defaults: new {controller = "Owa", action = "GetFile"});
|
||||
|
||||
configuration.Routes.MapHttpRoute(
|
||||
name: OwaRouteNames.CheckFileInfo,
|
||||
routeTemplate: "owa/wopi*/files/{accessTokenId}",
|
||||
defaults: new {controller = "Owa", action = "CheckFileInfo"});
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
configuration.Routes.MapHttpRoute("API Default", "api/{controller}/{id}",
|
||||
new { id = RouteParameter.Optional });
|
||||
|
||||
configuration.DependencyResolver = new NinjectDependecyResolver();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue