Base solution for your next web application
Open Closed

How to load angular app instead of swaager UI #6243


User avatar
0
[email protected] created

Hi,

I apologize in advance if this is a stupid question.

I have published my aspnet zero app to IIS and copied the published angular app into the wwwroot folder.

When I browse to my site URL (www.mydomain.com) it automatically loads the swagger ui. (www.mydomain.com//swagger/index.html)

But if I browse to www.mydomain.com/index.html then my angular app is loaded.

How would I get it to load my angular app instead of the the swagger ui when browing to www.mydomain.com ?


3 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    You can modify it here. https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Controllers/HomeController.cs#L11

  • User Avatar
    0
    [email protected] created

    Perfect! Thank you.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @maliming :)