How to set start page in dotnet core web api?

后端 未结 9 605
广开言路
广开言路 2021-01-31 07:56

I try to build a web application with dotnet core web api,but i do not know how to set index.html as start page which can be done with dotnet framework web api easily. And i tri

9条回答
  •  太阳男子
    2021-01-31 08:20

    Your index.html file must be in the wwwroot folder

    wwwroot / index.html

    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files

提交回复
热议问题