mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
feat: migrate nextjs to rr7
This commit is contained in:
10
packages/auth/server/routes/session.ts
Normal file
10
packages/auth/server/routes/session.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { Hono } from 'hono';
|
||||
|
||||
import type { SessionValidationResult } from '../lib/session/session';
|
||||
import { getSession } from '../lib/utils/get-session';
|
||||
|
||||
export const sessionRoute = new Hono().get('/session', async (c) => {
|
||||
const session: SessionValidationResult = await getSession(c);
|
||||
|
||||
return c.json(session);
|
||||
});
|
||||
Reference in New Issue
Block a user