mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
1bd815d391
commit
97aa775e83
2 changed files with 7 additions and 3 deletions
|
|
@ -27,10 +27,14 @@ private static void AddSwaggerGenCustom(this IServiceCollection services)
|
|||
Version = "v1",
|
||||
Description =
|
||||
"FilterLists is the independent and comprehensive directory of all public filter and hosts lists for advertisements, trackers, malware, and annoyances.",
|
||||
Contact = new Contact {Url = "https://github.com/collinbarrett/FilterLists/issues"},
|
||||
Contact = new Contact
|
||||
{
|
||||
Url = "https://github.com/collinbarrett/FilterLists/",
|
||||
Name = "FilterLists - GitHub"
|
||||
},
|
||||
License = new License
|
||||
{
|
||||
Name = "Use under MIT License",
|
||||
Name = "MIT License",
|
||||
Url = "https://github.com/collinbarrett/FilterLists/blob/master/LICENSE"
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
|
|||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "FilterLists API V1");
|
||||
c.SwaggerEndpoint("/api/swagger/v1/swagger.json", "FilterLists API V1");
|
||||
c.RoutePrefix = "docs";
|
||||
});
|
||||
app.UseHttpsRedirection();
|
||||
|
|
|
|||
Loading…
Reference in a new issue