dotnet / dotnet/aspnetcore

Global endpoint filter (edit: and other conventions?)

Open
#43,237 14 comments 3 reactions 1 assignee Claimed by @halter73 View on GitHub
api-needs-work area-minimal
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

Since we introduced the endpoint filter feature, is there also a global endpoint filter available?

So that we could avoid registering the endpoint filter for each endpoint.

### Describe the solution you'd like

Maybe likes MVC global filters, and maybe group endpoint filter for a `Group` (`MapGroup`) likes the filter for controller

### Additional context

_No response_

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.