Liam Pietralla
f577617b4d
All checks were successful
Build and Publish / Build Yale Access Backend (push) Successful in 28s
Build and Publish / Build Yale Access Frontend (push) Successful in 47s
Build and Publish / Push Yale Access Backend Docker Image (push) Successful in 9s
Build and Publish / Push Yale Access Frontend Docker Image (push) Successful in 10s
26 lines
616 B
Vue
26 lines
616 B
Vue
<script setup lang="ts">
|
|
import { onMounted, ref } from 'vue';
|
|
|
|
const runtimeConfig = useRuntimeConfig();
|
|
const healthResult = ref<string>("Fetching health check...");
|
|
|
|
onMounted(async () => {
|
|
// Send a request to the API Health Check endpoint
|
|
const response = await fetch(`${runtimeConfig.public.apiBaseUrl}/api/Health`);
|
|
|
|
// Extract the response payload (string result)
|
|
const result = await response.text();
|
|
|
|
// Set the result
|
|
healthResult.value = result;
|
|
})
|
|
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<div class="text-slate-300">
|
|
<h1>Health Check</h1>
|
|
<p>{{ healthResult }}</p>
|
|
</div>
|
|
</template> |