| 1 | import { Hono } from "hono"; |
| 2 | const app = new Hono(); |
| 3 | app.get("/", (context) => { |
| 4 | console.log("alchemy-neon-hono-log-probe"); |
| 5 | return context.text("hono"); |
| 6 | }); |
| 7 | app.get("/private", (context) => |
| 8 | context.req.header("authorization") === "Bearer test-caller" |
| 9 | ? context.text("authorized") |
| 10 | : context.text("unauthorized", 401), |
| 11 | ); |
| 12 | export default app; |