scottluskcis/azure-function-di

The host.json has been override.

Opened this issue · 0 comments

Dear Scott,
Thanks for this solution in advance. I'm using this approach in my azure function V3. It works fine but the "host.json" has been overridden and any settings in the file won't work anymore. Is there any workaround?
Here is my host.json file.
Acccording to this Document, the "routePrefix": "" would remove "api" prefix syntax.

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingExcludedTypes": "Request",
      "samplingSettings": {
        "isEnabled": true
      }
    }
  },
  "extensions": {
    "http": {
      "routePrefix": ""
    }
  }
}