Hi @Mahesh Govind - FT ,
Welcome to Microsoft Q&A and thank you for posting this question here.
I understand that you are looking for customizing Azure Function http trigger endpoint. You can customize this route using the optional route
property on the HTTP trigger's input binding. You can use any Web API Route Constraint with your parameters. Please see the following link for more details and sample code snippet - Customize the HTTP endpoint in Azure Function Apps
Edit 11/08/2022
As mentioned in the comment below, you are using a golang server as custom handler in Azure Function. In this case, you can define custom routes/path using the route
field in function.json file. Please see here for a basic overview of the relationship between the Functions host and a web server implemented as a custom handler.
Consider the following scenario, similar to the context mentioned in question - I have 2 handler functions in my golang web server. I have mapped the path in main()
of the custom handler code as below:
In order for the Azure Function to route the request to these 2 different handle functions, create 2 different functions in Azure function project with their own function.json file. This json file would contain details of how the mapping from Azure function happens to the custom handle function.
The function host identifies 2 functions (depending on the route):
Depending on the URL accessed, the request is routed to respective function:
Please let me know if you have any questions.
---
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.