【发布时间】:2014-08-17 16:53:54
【问题描述】:
我正在使用 WebApi,并为“api/{controller}/{id}”设置了路由。但我在项目中也有以下文件夹结构:
\Static\index.html
\Static\pageY.html
我希望网站的用户能够访问:
http://localhost/index.html
http://localhost/pageY.html
这是我应该避免做的事情吗?如果没有,有没有办法做出这样的路由定义?
【问题讨论】:
标签: .net owin asp.net-web-api-routing