initial commit
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
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
This commit is contained in:
26
packages/frontend/components/HealthCheck.vue
Normal file
26
packages/frontend/components/HealthCheck.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<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>
|
Reference in New Issue
Block a user