ASP.NET Core routing prefix

后端 未结 5 1139
余生分开走
余生分开走 2021-01-17 17:45

I\'m developing an ASP.NET Core application. My application hosted with NGinx on url http://somedomain.com/MyApplication.

I need all requests routed to

5条回答
  •  盖世英雄少女心
    2021-01-17 18:00

    [Route("MyApplication")]
    public class MyController : Controller
    {
        [HttpGet]
        public async Task Login(string returnUrl = null)
        {
            // Blah!
        }
    }
    

提交回复
热议问题