Allow Blazor Server app to have API endpoint #30204
Labels
area-blazor
Includes: Blazor, Razor Components
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Is your feature request related to a problem? Please describe.
Rather than adding the complexity of a shared project, that contains EF Core models, to be used by Blazor and an API project, it would be useful to have an API endpoint available in a Blazor Server app.
Describe the solution you'd like
Maybe it is possible, and not documented somewhere I've found, but to add a Controller with an endpoint or handle it in the
OnGet
of_Host.cshtml
would work for this. Is this possible now, or a good fit for a future release?The text was updated successfully, but these errors were encountered: