summaryrefslogtreecommitdiff
path: root/u/server/activity/health.ts
diff options
context:
space:
mode:
Diffstat (limited to 'u/server/activity/health.ts')
-rw-r--r--u/server/activity/health.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/u/server/activity/health.ts b/u/server/activity/health.ts
index 7ee6629..98acbb8 100644
--- a/u/server/activity/health.ts
+++ b/u/server/activity/health.ts
@@ -27,15 +27,19 @@ export const HealthCheckActivity = <Trace>(
health.mapBoth((e) => {
trace.addTrace(LogLevel.ERROR).trace(`${e}`);
return new Response(
- "oh no, i need to eat more vegetables (。•́︿•̀。)...\n",
- { status: 500 },
+ JSON.stringify({
+ message: "oh no, i need to eat more vegetables (。•́︿•̀。)...",
+ }),
+ { status: 500, headers: { "Content-Type": "application/json" } },
);
}, (_healthy) => {
const msg = `think im healthy!! (✿˘◡˘) ready to do work~`;
trace.trace(msg);
return new Response(
- msg + "\n",
- { status: 200 },
+ JSON.stringify({
+ message: "oh no, i need to eat more vegetables (。•́︿•̀。)...",
+ }),
+ { status: 500, headers: { "Content-Type": "application/json" } },
);
});
}));