Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion frontend/src/routes/+layout.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export const load = async ({ fetch }) => {
throw new Error(`API returned status ${response.status}`);
}
const data = await response.json();

if (!data) {
return {
healthStatus: { error: 'No data received from API' }, // Handle missing data
};
}
return {
healthStatus: response.ok, // Pass the API response to the page
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 class="text-5xl font-bold">Welcome to Contoso</h1>
<h1 class="text-5xl font-bold">Welcome to Roche</h1>
<div class="flex">
<div class="card bg-base-200 w-auto">
<div class="card-body">
Expand Down