import { Hono } from "hono";
import { auth } from "./auth";
import { uploadRoute } from "./routes/upload";
import type { AppVariables } from "./types";
export const app = new Hono<{ Variables: AppVariables }>();
app.on(["POST", "GET"], "/api/auth/**", (c) => auth.handler(c.req.raw));
export const routes = app.route("/", uploadRoute);
export type AppType = typeof routes;
import { Hono } from "hono";
import { auth } from "./auth";
import { uploadRoute } from "./routes/upload";
import type { AppVariables } from "./types";
export const app = new Hono<{ Variables: AppVariables }>();
app.on(["POST", "GET"], "/api/auth/**", (c) => auth.handler(c.req.raw));
export const routes = app.route("/", uploadRoute);
export type AppType = typeof routes;