【发布时间】:2015-04-13 03:34:22
【问题描述】:
应该是一个简单的问题,只是找不到答案。
我有一个带有 Web api 的 SPA (AngularJS),它是由 Owin 自托管的。我使用 Nancy 来提供页面,但我想摆脱 Nancy 并使用 Index.html 作为我的单个页面。
我在这里看到了这个问题:How to route EVERYTHING other than Web API to /index.html
我无法使用已接受的答案,因为我没有 MVC 和 HomeController,更新问题中建议的方式也不起作用,我得到 No HTTP resource was found that matches the request URI 'http://admin.localhost:33333/'. No route providing a controller name was found to match request URI 'http://admin.localhost:33333/'
【问题讨论】:
标签: asp.net-web-api routing single-page-application owin