修改注释
This commit is contained in:
parent
bcdfc25af1
commit
14600d3392
11
README.md
11
README.md
|
|
@ -1,4 +1,13 @@
|
||||||
# HuanMengProject 开发文档
|
# HuanMengProject 开发文档
|
||||||
|
|
||||||
|
|
||||||
###
|
### 项目说明
|
||||||
|
```sh
|
||||||
|
# Program.cs 文件说明
|
||||||
|
# 输出的时候,将请求的参数转换成小写
|
||||||
|
c.ParameterFilter<LowercaseParameterFilter>();
|
||||||
|
c.RequestBodyFilter<LowercaseRequestFilter>();
|
||||||
|
|
||||||
|
//配置路由选项,使URL全部小写
|
||||||
|
builder.Services.AddRouting(options => options.LowercaseUrls = true);
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ app.UseSwaggerUI(c =>
|
||||||
c.DefaultModelExpandDepth(3);
|
c.DefaultModelExpandDepth(3);
|
||||||
c.EnableFilter("true");
|
c.EnableFilter("true");
|
||||||
//c.RoutePrefix = string.Empty;
|
//c.RoutePrefix = string.Empty;
|
||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "Your API V1");
|
c.SwaggerEndpoint("/swagger/v1/swagger.json", "寰梦 API V1");
|
||||||
});
|
});
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user