mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
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);
|
|
});
|