mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Update Startup.cs
This commit is contained in:
parent
573c0b5f33
commit
d8067e04e6
1 changed files with 6 additions and 6 deletions
|
@ -168,6 +168,11 @@ namespace Ombi
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|
||||||
//ApiKeyMiddlewear(app, serviceProvider);
|
//ApiKeyMiddlewear(app, serviceProvider);
|
||||||
|
app.UseSwaggerUI(c =>
|
||||||
|
{
|
||||||
|
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
|
||||||
|
c.ShowJsonEditor();
|
||||||
|
});
|
||||||
|
|
||||||
app.UseMvc(routes =>
|
app.UseMvc(routes =>
|
||||||
{
|
{
|
||||||
|
@ -179,11 +184,6 @@ namespace Ombi
|
||||||
name: "spa-fallback",
|
name: "spa-fallback",
|
||||||
defaults: new { controller = "Home", action = "Index" });
|
defaults: new { controller = "Home", action = "Index" });
|
||||||
});
|
});
|
||||||
app.UseSwaggerUI(c =>
|
|
||||||
{
|
|
||||||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
|
|
||||||
c.ShowJsonEditor();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ApiKeyMiddlewear(IApplicationBuilder app, IServiceProvider serviceProvider)
|
private static void ApiKeyMiddlewear(IApplicationBuilder app, IServiceProvider serviceProvider)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue