The best way to control Claude Code, Codex and more from any computer or phone

main
ts 13 lines 272 Bytes
Raw
1 import mysql2 from "mysql2";
2
3 interface Env {
4 DATABASE_URL: string;
5 }
6
7 export default {
8 fetch(_request: Request, env: Env) {
9 const db = mysql2.createConnection(env.DATABASE_URL);
10 const result = db.execute("SELECT 1");
11 return Response.json(result);
12 },
13 };