Skip to content

Commit 6cfbb10

Browse files
committed
Updates for OpenAPI
1 parent 228dc29 commit 6cfbb10

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ It showcases:
2323
## Prerequisites
2424

2525
### .NET
26-
1. [Install .NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
26+
1. [Install .NET 9](https://dotnet.microsoft.com/en-us/download/dotnet/9.0)
2727

2828
### Database
2929

Todo.Api/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,17 @@
4444

4545
if (app.Environment.IsDevelopment())
4646
{
47-
app.MapScalarApiReference();
47+
app.MapScalarApiReference(options =>
48+
{
49+
options.Servers = [];
50+
});
4851
}
4952

5053
app.MapOpenApi();
5154

5255
app.MapDefaultEndpoints();
5356

54-
app.Map("/", () => Results.Redirect("/swagger"));
57+
app.Map("/", () => Results.Redirect("/scalar/v1"));
5558

5659
// Configure the APIs
5760
app.MapTodos();

0 commit comments

Comments
 (0)