How to change the default controller and action in ASP.NET Core API?

前端 未结 2 502
渐次进展
渐次进展 2021-02-08 02:33

I\'m creating an ASP.NET Core API app, and currently, and when one creates a new project there is a controller named Values, and by default the API opens it when you run. So, I

2条回答
  •  醉酒成梦
    2021-02-08 03:04

    You can change it in launchSettings.json file in Properties node. There should be field launchUrl which contains default launching url

提交回复
热议问题