MVC4 - Is there a way to route the root to a “normal” unprocessed html page?

后端 未结 1 1642
旧巷少年郎
旧巷少年郎 2021-02-20 17:03

I have an MVC4 app, but I\'m primarily using it for the WebAPI parts. I want to have a \"plain old HTML\" file sent back to the user (which will then use KnockoutJS or KendoUI t

相关标签:
1条回答
  • 2021-02-20 18:02

    Add the following to your routing config:

    routes.IgnoreRoute("");
    
    0 讨论(0)
提交回复
热议问题