Skip to content

Commit a113ba7

Browse files
committed
fix(ui): correct links
1 parent e1629d0 commit a113ba7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

api/router.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ func serveFile(w http.ResponseWriter, r *http.Request, name string) {
588588
}
589589

590590
func getSystemInfo(w http.ResponseWriter, r *http.Request) {
591-
host := util.GetPublicHost()
592591

593592
var authMethods LoginAuthMethods
594593

@@ -601,7 +600,7 @@ func getSystemInfo(w http.ResponseWriter, r *http.Request) {
601600
body := map[string]any{
602601
"version": util.Version(),
603602
"ansible": util.AnsibleVersion(),
604-
"web_host": host,
603+
"web_host": util.Config.WebHost,
605604
"use_remote_runner": util.Config.UseRemoteRunner,
606605

607606
"auth_methods": authMethods,

web/src/views/Tokens.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
</v-btn>
1111
<v-toolbar-title>{{ $t('api_tokens') }}</v-toolbar-title>
1212
<v-spacer></v-spacer>
13+
14+
<a :href="`${this.systemInfo?.web_host || ''}/swagger/index.html`" class="mr-6">
15+
{{ $t('API Reference') }}
16+
</a>
17+
1318
<v-btn
1419
color="primary"
1520
@click="newToken()"
@@ -89,6 +94,7 @@ export default {
8994
},
9095
9196
props: {
97+
systemInfo: Object,
9298
},
9399
94100
computed: {

0 commit comments

Comments
 (0)