I am trying to figure out how I can create my own middleware, to provide a Form or Webpage.
It should be usable like HangFire or NSwager and it should work for .NET Core WebApp and WebApi projects:
app.UseHangfireDashboard(); app.UseSwaggerUi3(); So in my case i would like to use it like:
app.UseMyDashboard(); What it needs to do:
- Provide an endpoint (/myDashboard)
- This page contains a simple form
- Submit the form and execute some code
How do I do something like that ? Do I need to create a separate project for this? Because I want to reuse this in any other projects, meaning I want to pack this in a NuGet package and make it available for internal use.