diff --git a/aspnetcore/fundamentals/minimal-apis/includes/middleware7.md b/aspnetcore/fundamentals/minimal-apis/includes/middleware7.md index 3c17642265..b6420cf4dd 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/middleware7.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/middleware7.md @@ -1,6 +1,6 @@ :::moniker range="= aspnetcore-7.0" -`WebApplication` automatically adds the following middleware depending on certain conditions: +[`WebApplication`](xref:fundamentals/minimal-apis/webapplication) automatically adds the following middleware in [`Minimal API applications`](xref:fundamentals/minimal-apis/overview) depending on certain conditions: * [`UseDeveloperExceptionPage`](/dotnet/api/microsoft.aspnetcore.diagnostics.developerexceptionpagemiddleware) is added first when the [`HostingEnvironment`](xref:fundamentals/environments) is `"Development"`. * [`UseRouting`](/dotnet/api/microsoft.aspnetcore.builder.endpointroutingapplicationbuilderextensions.userouting) is added second if user code didn't already call `UseRouting` and if there are endpoints configured, for example `app.MapGet`. * [`UseEndpoints`](/dotnet/api/microsoft.aspnetcore.builder.endpointroutingapplicationbuilderextensions.useendpoints) is added at the end of the middleware pipeline if any endpoints are configured. diff --git a/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md b/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md index bd32003aef..9c806708dc 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md @@ -1,6 +1,6 @@ :::moniker range=">= aspnetcore-8.0" -`WebApplication` automatically adds the following middleware depending on certain conditions: +[`WebApplication`](xref:fundamentals/minimal-apis/webapplication) automatically adds the following middleware in [`Minimal API applications`](xref:fundamentals/minimal-apis/overview) depending on certain conditions: * [`UseDeveloperExceptionPage`](/dotnet/api/microsoft.aspnetcore.diagnostics.developerexceptionpagemiddleware) is added first when the [`HostingEnvironment`](xref:fundamentals/environments) is `"Development"`. * [`UseRouting`](/dotnet/api/microsoft.aspnetcore.builder.endpointroutingapplicationbuilderextensions.userouting) is added second if user code didn't already call `UseRouting` and if there are endpoints configured, for example `app.MapGet`. * [`UseEndpoints`](/dotnet/api/microsoft.aspnetcore.builder.endpointroutingapplicationbuilderextensions.useendpoints) is added at the end of the middleware pipeline if any endpoints are configured. diff --git a/aspnetcore/fundamentals/minimal-apis/middleware.md b/aspnetcore/fundamentals/minimal-apis/middleware.md index d4c36d48bc..c9070c1b64 100644 --- a/aspnetcore/fundamentals/minimal-apis/middleware.md +++ b/aspnetcore/fundamentals/minimal-apis/middleware.md @@ -3,7 +3,7 @@ title: Middleware with Minimal API applications author: BrennanConroy description: Use middleware in Minimal API applications ms.author: brecon -ms.date: 8/25/2023 +ms.date: 02/16/2024 monikerRange: '>= aspnetcore-7.0' uid: fundamentals/minimal-apis/middleware --- @@ -14,3 +14,5 @@ uid: fundamentals/minimal-apis/middleware [!INCLUDE [webapplication8](~/fundamentals/minimal-apis/includes/middleware8.md)] For more information about middleware see [ASP.NET Core Middleware](xref:fundamentals/middleware/index), and the [list of built-in middleware](xref:fundamentals/middleware/index#built-in-middleware) that can be added to applications. + +For more information about Minimal APIs see [`Minimal APIs overview`](xref:fundamentals/minimal-apis/overview).