How To Set Startup Route In ASP.NET Core

前端 未结 2 1405
臣服心动
臣服心动 2020-12-19 04:50

My ASP.NET core app startup route is set as:

/api/values

I want to change this startup route to be:

/

Loo

2条回答
  •  鱼传尺愫
    2020-12-19 05:16

    Adam Weitzman is right, but you can also switch it using Visual Studio's GUI.

    1. Right-click on project in Solution Explorer
    2. Click Properties
    3. Go to Debug tab
    4. Check the Launch URL checkbox and set the URL you want. Leave the text box empty to launch the root URL

提交回复
热议问题