// Import Dependencies import { Hono } from "hono"; import { version } from "../package.json"; // Import Routers import { v1 } from "./routes/v1"; // Instantiate new Hono instance const app = new Hono(); // Server information notice app.get("/", (c) => c.text( `This domain is running a Shard currency server instance, on version ${version}\n\nFor more information, visit https://tangled.org/thevoid.cafe/shard`, ), ); // Router mappings app.route("/v1", v1); // Export Hono instance configuration export default { fetch: app.fetch, port: Bun.env.PORT || 80, };