mirror of
https://github.com/khairul169/github-leaderboard.git
synced 2025-04-28 15:39:31 +07:00
18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
import { Hono } from "hono";
|
|
import { auth } from "./routes/auth";
|
|
import { leaderboard } from "./routes/leaderboard";
|
|
|
|
const router = new Hono()
|
|
.route("/auth", auth)
|
|
.route("/leaderboard", leaderboard);
|
|
|
|
export type AppType = typeof router;
|
|
|
|
declare module "hono" {
|
|
interface ContextVariableMap {
|
|
userId?: number;
|
|
}
|
|
}
|
|
|
|
export default router;
|