Skip to content

Commit

Permalink
Merge pull request #99 from iwedaz/feat/readme_static_files
Browse files Browse the repository at this point in the history
Add readme.md requirements to use static files middleware
  • Loading branch information
edandersen authored Jan 29, 2024
2 parents 704dfb1 + 7fb7786 commit 6544d72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ Add this line before ```var app = builder.Build();``` and after your DbContexts
builder.Services.AddCoreAdmin();
```

You need to make sure Endpoints are enabled as they don't appear to be in the default templates. For example, add the following before ```app.Run();```:
You need to make sure Endpoints are enabled as they don't appear to be in the default templates.
Also [static files middleware](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files) has to be enabled.

For example, add the following before ```app.Run();```:

```csharp
app.UseStaticFiles();
app.MapDefaultControllerRoute();
```

Expand Down

0 comments on commit 6544d72

Please sign in to comment.