mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: lower vulnerabilities + harden docker setup
also includes a github workflow
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { apiUrl } from '$lib/server/api';
|
||||
import { json } from '@sveltejs/kit';
|
||||
|
||||
export const GET = async () => {
|
||||
const res = await fetch(`${apiUrl}/health`);
|
||||
|
||||
if (!res.ok) {
|
||||
return json({ status: 'unhealthy', backend: res.status }, { status: 503 });
|
||||
}
|
||||
|
||||
return json({ status: 'ok' });
|
||||
};
|
||||
Reference in New Issue
Block a user