nventive / DotNet.Backend.Template

.NET Core Templates for backend applications and open-source components.
Apache License 2.0
7 stars 3 forks source link

Add default root path #21

Closed baptiste09 closed 3 years ago

baptiste09 commented 3 years ago

GitHub Issue: # NA

Proposed Changes

Add default root path to prevent AppService AlwaysOn feature to generate failed requests

What is the current behavior?

AppService AlwaysOn feature calls the root path every 5 minutes to prevent the service to idle. If there is no controller to answer, a HTTP 404 error is thrown and generate unwanted noise in logs.

What is the new behavior?

Add a default controller that respond HTTP 200 with no payload

Checklist