Skip to content

Commit 240d47f

Browse files
committed
Inferred new includeStaticFiles in documentation
Added the `includeStaticFiles` parameter in the `MapTopicErrors()` example, and annotated it with a note in the corresponding comment. This isn't very explicit documentation, but helps indicate that this functionality exists.
1 parent b591bd7 commit 240d47f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.AspNetCore.Mvc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public class Startup {
187187
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
188188
app.UseEndpoints(endpoints => {
189189
endpoints.MapTopicErrors(); // Error/{errorCode}
190-
endpoints.MapTopicErrors("Errors"); // Errors/{errorCode}
190+
endpoints.MapTopicErrors("Errors", false); // Errors/{errorCode}; disables includeStaticFiles
191191
endpoints.MapDefaultControllerRoute(); // Error/Http/{errorCode}
192192
endpoints.MapTopicRoute("Error"); // Error/{path}; e.g., Error/Unauthorized
193193
}

0 commit comments

Comments
 (0)