fix: update match configuration to bestOf 5 and scoringType to score_v2
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { json } from "@sveltejs/kit";
|
||||
import { d as db } from "../../../../chunks/index2.js";
|
||||
import { sql } from "drizzle-orm";
|
||||
const GET = async () => {
|
||||
try {
|
||||
await db.execute(sql`SELECT 1`);
|
||||
return json({
|
||||
status: "ok",
|
||||
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
||||
uptime: process.uptime()
|
||||
});
|
||||
} catch (e) {
|
||||
return json(
|
||||
{
|
||||
status: "error",
|
||||
error: "Database connection failed",
|
||||
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
||||
},
|
||||
{ status: 503 }
|
||||
);
|
||||
}
|
||||
};
|
||||
export {
|
||||
GET
|
||||
};
|
||||
Reference in New Issue
Block a user