Skip to content

Commit

Permalink
add dark theme for swagger ui
Browse files Browse the repository at this point in the history
  • Loading branch information
panosru committed Feb 8, 2024
1 parent 87c6e27 commit 2947f63
Show file tree
Hide file tree
Showing 3 changed files with 854 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Hosts/RestApi/Presentation/Swagger/MiddlewareExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public static void UseSwaggerDocuments(this IApplicationBuilder app)

app.UseSwagger();

app.UseSwaggerUI();
app.UseSwaggerUI(options =>
{
options.InjectStylesheet("/css/swagger-ui/dark-theme.css");
});
}
}
Loading

0 comments on commit 2947f63

Please sign in to comment.