t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Neon/fixtures/function-hono.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

12 lines
355 B
TypeScript

import { Hono } from "hono";
const app = new Hono();
app.get("/", (context) => {
console.log("alchemy-neon-hono-log-probe");
return context.text("hono");
});
app.get("/private", (context) =>
context.req.header("authorization") === "Bearer test-caller"
? context.text("authorized")
: context.text("unauthorized", 401),
);
export default app;