HTML page with images using .net WebApi

后端 未结 2 898
伪装坚强ぢ
伪装坚强ぢ 2021-01-25 17:08

I\'m using .net WebApi to expose different endpoints with JSON data. Now I need that an specific endpoint returns HTMLs pages. I have implemented it like this.

[         


        
2条回答
  •  终归单人心
    2021-01-25 18:07

    WebApi can serve static file.

    So you just have to set the right link in your html file.

    For example:

    Your will be like this:

提交回复
热议问题