[Templates] Consider calling `Shortcircuit()` by default on the templates after `MapStaticAssets()`
Open
area-blazor
area-mvc
feature-templates
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 276
Description
It makes the behavior more aligned with `UseStaticFiles` by executing the endpoint right away and skipping the middleware in the pipeline (similar to UseStaticFiles does).
Contributor guide
Research direction
Start by locating the ASP.NET Core templates that call MapStaticAssets(), then read the surrounding middleware setup and the UseStaticFiles behavior referenced in the issue. Done means the relevant templates call Shortcircuit() by default after MapStaticAssets() and the resulting endpoint execution skips the middleware pipeline as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100