Browse Source

Show swagger URL in the auth-server homepage instead of the root url for the Swagger Client

pull/19967/head
Engincan VESKE 2 years ago
parent
commit
5ae48fda83
  1. 6
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Pages/Index.cshtml

6
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Pages/Index.cshtml

@ -90,6 +90,10 @@
<abp-column size-md="@Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Grid.ColumnSize._4" class="mb-2"> <abp-column size-md="@Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Grid.ColumnSize._4" class="mb-2">
<abp-card> <abp-card>
<abp-card-body> <abp-card-body>
@{
var clientUri = application.ClientUri.Contains("Swagger") ? application.ClientUri.EnsureEndsWith('/') + "swagger/index.html" : application.ClientUri;
}
@if (!application.LogoUri.IsNullOrEmpty()) @if (!application.LogoUri.IsNullOrEmpty())
{ {
<div class="mx-auto"> <div class="mx-auto">
@ -98,7 +102,7 @@
} }
<h4>@application.DisplayName</h4> <h4>@application.DisplayName</h4>
<a href="@application.ClientUri" class="text-muted stretched-link">@application.ClientUri</a> <a href="@clientUri" class="text-muted stretched-link">@clientUri</a>
</abp-card-body> </abp-card-body>
</abp-card> </abp-card>
</abp-column> </abp-column>

Loading…
Cancel
Save