initial commit

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-10-24 19:36:05 +00:00
commit 30986e0292
31 changed files with 2021 additions and 0 deletions

25
apps/backend/src/index.ts Normal file
View File

@@ -0,0 +1,25 @@
import { Hono } from "hono"
import { cors } from "hono/cors"
import { logger } from "hono/logger"
import weather from "./weather"
const app = new Hono()
app.use("*", logger())
app.use("*", cors())
app.get("/", (c) => {
return c.json({ message: "Hello from Bun + Hono!" })
})
app.get("/api/health", (c) => {
return c.json({ status: "ok", timestamp: new Date().toISOString() })
})
// Mount weather routes
app.route("/api/weather", weather)
export default {
port: 8000,
fetch: app.fetch,
}