Azure函数未对http触发器应用routePrefix [英] Azure functions not applying routePrefix for http trigger
本文介绍了Azure函数未对http触发器应用routePrefix的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试在当前的Beta版本中将routePrefix用于http触发器,但是它似乎没有用,它仍然应用了api前缀.是bug还是v2尚未实现的某些东西?
I've been trying to use the routePrefix for http triggers in the current beta version however it doesn't seem to work it still applies the api prefix. Is it a bug or something that is not yet implemented for v2?
"http":{
"routePrefix" :"<
}
"http": {
"routePrefix" : ""
},
亲切的问候
Mikael
推荐答案
我刚刚尝试过,它似乎在v2中对我有用:
I just tried it and it seems to work for me in v2:
{
"http": {
"routePrefix": ""
}
}
启动功能主机时看到的输出是什么?它应该打印出您的主机配置文件的JSON内容.
What is the output you see when you start up the functions host? It should print out your Host configuration file JSON contents.
这篇关于Azure函数未对http触发器应用routePrefix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文