mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-13 13:57:43 +02:00
12 lines
355 B
TypeScript
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;
|