Browse Source
Merge pull request #19967 from abpframework/EngincanV/show-swagger-url
Show swagger URL in the auth-server homepage instead of the root url for the Swagger Client.
pull/19987/head
Enis Necipoglu
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
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> |
|
|
|