diff --git a/aspnetcore/fundamentals/minimal-apis/includes/middleware.md b/aspnetcore/fundamentals/minimal-apis/includes/middleware7.md similarity index 100% rename from aspnetcore/fundamentals/minimal-apis/includes/middleware.md rename to aspnetcore/fundamentals/minimal-apis/includes/middleware7.md diff --git a/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md b/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md index aff8a4f5a1..bd32003aef 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/middleware8.md @@ -77,4 +77,6 @@ app.Run(context => Terminal middleware is middleware that runs if no endpoint handles the request. +For information on antiforgery middleware in Minimal APIs, see + :::moniker-end diff --git a/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md b/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md index a062a7c7d4..a207bf79e0 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/webapplication.md @@ -14,7 +14,7 @@ The following code creates a [`WebApplication.Create`](xref:Microsoft.AspNetCore.Builder.WebApplication.Create%2A) initializes a new instance of the class with preconfigured defaults. -[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)] +[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)] ### Working with ports diff --git a/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md b/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md index a92204666a..9f95c0c7c7 100644 --- a/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md +++ b/aspnetcore/fundamentals/minimal-apis/includes/webapplication7.md @@ -13,7 +13,7 @@ The following code creates a [`WebApplication.Create`](xref:Microsoft.AspNetCore.Builder.WebApplication.Create%2A) initializes a new instance of the class with preconfigured defaults. -[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)] +[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)] ### Working with ports diff --git a/aspnetcore/fundamentals/minimal-apis/middleware.md b/aspnetcore/fundamentals/minimal-apis/middleware.md index aae5ca9d63..d4c36d48bc 100644 --- a/aspnetcore/fundamentals/minimal-apis/middleware.md +++ b/aspnetcore/fundamentals/minimal-apis/middleware.md @@ -3,14 +3,14 @@ title: Middleware with Minimal API applications author: BrennanConroy description: Use middleware in Minimal API applications ms.author: brecon -ms.date: 10/10/2022 +ms.date: 8/25/2023 monikerRange: '>= aspnetcore-7.0' uid: fundamentals/minimal-apis/middleware --- # Middleware in Minimal API apps -[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware.md)] +[!INCLUDE [webapplication7](~/fundamentals/minimal-apis/includes/middleware7.md)] [!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.