Add index route

This commit is contained in:
Malted 2025-03-30 18:35:41 -04:00
parent db17234b82
commit c605b83d77
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
import { sql } from "bun";
import index from "./index.html";
async function q(ip: string) {
return await sql`
@ -38,6 +39,7 @@ async function q(ip: string) {
Bun.serve({
routes: {
"/": index,
"/ip": async (req, server) => {
const start = performance.now()
const ip = req.headers.get("x-real-ip")