feat: Add root path redirect to Hangfire dashboard
- Map root path (/) to redirect to /hangfire dashboard - Improves user experience by providing direct access to main dashboard - Users accessing the application root will be automatically redirected to Hangfire
This commit is contained in:
@@ -138,6 +138,9 @@ app.UseSerilogUi();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
// Redirect root path to Hangfire dashboard
|
||||
app.MapGet("/", () => Results.Redirect("/hangfire"));
|
||||
|
||||
app.Run();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user