0 votes
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}"

        }

    ]

}

Related questions

0 votes
asked Mar 16, 2022 in Azure Function by sharadyadav1986
0 votes
asked Mar 16, 2022 in Azure Function by sharadyadav1986
...