10 lines
244 B
TypeScript
10 lines
244 B
TypeScript
import { auth } from '@/lib/auth';
|
|
import { AppEnv } from '@/types/hono';
|
|
import { Hono } from 'hono';
|
|
|
|
export const authRoutes = new Hono<AppEnv>();
|
|
|
|
authRoutes.on(['POST', 'GET'], '/api/auth/*', (c) => {
|
|
return auth.handler(c.req.raw);
|
|
});
|