|
|
|
@ -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)
|
|
|
|
|