-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathSwaggerNet.cs
More file actions
30 lines (28 loc) · 989 Bytes
/
SwaggerNet.cs
File metadata and controls
30 lines (28 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.IO;
using System.Web;
using System.Web.Http;
using System.Web.Http.Description;
using System.Web.Http.Dispatcher;
using System.Web.Routing;
using Swagger.Net;
[assembly: WebActivator.PreApplicationStartMethod(typeof(Swagger.Net.WebApi.App_Start.SwaggerNet), "PreStart")]
namespace Swagger.Net.WebApi.App_Start
{
public static class SwaggerNet
{
public static void PreStart()
{
//RouteTable.Routes.MapHttpRoute(
// name: "SwaggerResourceList",
// routeTemplate: "api/swagger",
// defaults: new { swagger = true, controller = "Swagger", action = "GetResourceList" }
//);
//RouteTable.Routes.MapHttpRoute(
// name: "SwaggerApiDeclaration",
// routeTemplate: "apidocs/{controllerName}",
// defaults: new { swagger = true, controller = "Swagger", action = "GetApiDeclaration" }
//);
}
}
}