11 lines
240 B
TypeScript
11 lines
240 B
TypeScript
import type { User } from 'types';
|
|
import { Hono } from 'hono';
|
|
|
|
export type HonoVariables = {
|
|
body: Record<string, unknown>;
|
|
origin: string;
|
|
user: User;
|
|
};
|
|
|
|
export const createRouter = () => new Hono<{ Variables: HonoVariables }>();
|