Skip to content

Commit 410eaa0

Browse files
committed
Updated docs
1 parent a19db01 commit 410eaa0

File tree

6 files changed

+56
-46
lines changed

6 files changed

+56
-46
lines changed

docs/v1/api/OpenSettings.Configurations.ControllerConfiguration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ items:
184184
185185
<pre><code class="lang-csharp">app.UseRouting();
186186
187+
app.UseOpenSettings();
188+
187189
app.UseAuthentication();
188190
189191
app.UseAuthorization();
190192
191-
app.UseOpenSettings();
192-
193193
app.MapControllers();</code></pre>
194194
195195
For more information, see <a href="https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-9.0#middleware-order">Asp.Net Core Middleware Order</a>

docs/v1/docs/configuration-guide.md

Lines changed: 46 additions & 41 deletions
Large diffs are not rendered by default.

docs/v1/docs/quick-start-consumer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cd Consumer.Api
2020
dotnet add package OpenSettings.AspNetCore
2121
```
2222

23-
## 🏗 Setting Up
23+
## 🔹 Setting Up
2424

2525
Now, let's configure OpenSettings for the **Consumer** application.
2626

docs/v1/docs/quick-start-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you're using a different database, replace this package with the appropriate
2929

3030
---
3131

32-
## 🏗 Setting Up
32+
## 🔹 Setting Up
3333

3434
Now, let's configure OpenSettings for the **Consumer** application and use **InMemory** storage.
3535

docs/v1/docs/security-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ A typical pipeline setup looks like this:
7272
```csharp
7373
...
7474
app.UseRouting();
75+
app.UseOpenSettings();
7576
app.UseAuthentication();
7677
app.UseAuthorization();
77-
app.UseOpenSettings();
7878
app.MapControllers();
7979
...
8080
```

src/OpenSettings.Docs/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Microsoft.AspNetCore.Builder;
2+
using Microsoft.AspNetCore.Rewrite;
23
using Microsoft.Extensions.DependencyInjection;
34
using OpenSettings.Docs;
45

@@ -14,6 +15,10 @@
1415
var maxAge300 = new CacheControl(300);
1516
var maxAge600 = new CacheControl(600);
1617

18+
var options = new RewriteOptions()
19+
.AddRewrite(@"^(v1/docs/[^\.\s/]+)$", "$1.html", skipRemainingRules: true);
20+
21+
app.UseRewriter(options);
1722
app.UseDefaultFiles();
1823
app.UseStaticFiles(new StaticFileOptions
1924
{

0 commit comments

Comments
 (0)