简化使用
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Nancy;
|
||||
using Nancy.Bootstrapper;
|
||||
using Nancy.Conventions;
|
||||
using Nancy.Swagger.Annotations;
|
||||
using Nancy.Swagger.Services;
|
||||
using Nancy.TinyIoc;
|
||||
using Swagger.ObjectModel;
|
||||
@@ -18,6 +19,8 @@ namespace 电子展板.WebModule
|
||||
Url = "https://www.cnblogs.com/zjwno1"
|
||||
}, "http://www.cnblogs.com/zjwno1");
|
||||
base.ApplicationStartup(container, pipelines);
|
||||
//仅显示有特性的接口
|
||||
SwaggerAnnotationsConfig.ShowOnlyAnnotatedRoutes = true;
|
||||
}
|
||||
|
||||
protected override void ConfigureConventions(NancyConventions nancyConventions)
|
||||
|
||||
Reference in New Issue
Block a user