Merge branch 'DotNetCore' of https://github.com/tidusjar/Ombi into DotNetCore

pull/1515/head
tidusjar 7 years ago
commit 0139a8f514

@ -168,7 +168,12 @@ namespace Ombi
app.UseAuthentication();
//ApiKeyMiddlewear(app, serviceProvider);
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
c.ShowJsonEditor();
});
app.UseMvc(routes =>
{
routes.MapRoute(
@ -179,11 +184,6 @@ namespace Ombi
name: "spa-fallback",
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)

Loading…
Cancel
Save