Checkpoint SHD dashboard design system
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { getDatabase } from '$lib/server/database';
|
||||
import { json } from '@sveltejs/kit';
|
||||
|
||||
export async function GET() {
|
||||
const database = await getDatabase();
|
||||
const statement = await database.prepare('SELECT 1 AS healthy');
|
||||
const result = await statement.get();
|
||||
|
||||
return json({
|
||||
status: result?.healthy === 1 ? 'ok' : 'error',
|
||||
engine: '@tursodatabase/database'
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user