dotnet / dotnet/aspnetcore

Add support for running actions during routing

Open
#49,936 1 comment 0 reactions 0 assignees View on GitHub
area-middleware
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

As part of the recent work to add better form support for minimal APIs, we've needed to add logic in the endpoint routing middleware to ensure that certain metadata is able to configure HTTP features before other middlewares run. The routing middleware is convenient here because it is the earliest point wherein we can set these features before other middleware can run.

While form support and anti-forgery are strong motivating examples, the general model of being able to run "filters" during routing is helpful enough that we should consider provide a more generic API for this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.