Fixed typo
This commit is contained in:
@@ -22,7 +22,7 @@ using EonaCat.DoxaApi.Middleware;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddEonaCat.DoxaApi(options =>
|
||||
builder.Services.AddDoxaApi(options =>
|
||||
{
|
||||
options.Title = "My API";
|
||||
options.Description = "Internal service API";
|
||||
@@ -31,7 +31,7 @@ builder.Services.AddEonaCat.DoxaApi(options =>
|
||||
|
||||
var app = builder.Build();
|
||||
app.UseRouting();
|
||||
app.UseEonaCat.DoxaApi(); // serves UI at /doxa and spec at /doxa/DoxaApi.json
|
||||
app.UseDoxaApi(); // serves UI at /doxa and spec at /doxa/DoxaApi.json
|
||||
app.MapControllers();
|
||||
|
||||
app.Run();
|
||||
@@ -52,7 +52,7 @@ Run your app and open `https://localhost:xxxx/doxa`.
|
||||
## Configuration reference
|
||||
|
||||
```csharp
|
||||
builder.Services.AddEonaCat.DoxaApi(options =>
|
||||
builder.Services.AddDoxaApi(options =>
|
||||
{
|
||||
options.Title = "My API"; // shown in the top bar and browser tab
|
||||
options.Description = "..."; // shown on the welcome screen
|
||||
|
||||
Reference in New Issue
Block a user