pull/1514/head
Jamie.Rees 7 years ago
parent a4637a139b
commit c263462fea

@ -55,6 +55,7 @@ namespace Ombi.Schedule.Jobs.Ombi
c.WriteLine("Looking for updates now");
var updates = await OmbiService.GetUpdates(branch);
c.WriteLine("Updates: {0}", updates);
var serverVersion = updates.UpdateVersionString;
Logger.LogInformation(LoggingEvents.Updater, "Service Version {0}", updates.UpdateVersionString);
@ -108,6 +109,7 @@ namespace Ombi.Schedule.Jobs.Ombi
}
if (download == null)
{
c.WriteLine("There were no downloads");
return;
}

@ -221,12 +221,6 @@ namespace Ombi
Authorization = new [] { new HangfireAuthorizationFilter() }
});
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
c.ShowJsonEditor();
});
// Setup the scheduler
@ -255,6 +249,12 @@ 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