in Azure Function by
How can I do Routing in Azure Functions??

1 Answer

0 votes
by

We can use the below code to implement Routing in Azure Function

{

    "bindings": [

        {

            "type": "httpTrigger",

            "name": "req",

            "direction": "in",

            "methods": [ "post", "put" ],

            "route": "node/products/{category:alpha}/{id:guid}"

        },

        {

            "type": "http",

            "name": "$return",

            "direction": "out"

        },

        {

            "type": "blob",

            "name": "product",

            "direction": "out",

            "path": "samples-output/{category}/{id}"

        }

    ]

}

...