mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
8 lines
290 B
TypeScript
8 lines
290 B
TypeScript
import { getIronSession } from "iron-session/edge";
|
|
import { NextRequest, NextResponse } from "next/server";
|
|
|
|
import { sessionConfig } from "../session-config";
|
|
|
|
export const getSession = async (req: NextRequest, res: NextResponse) => {
|
|
return getIronSession(req, res, sessionConfig);
|
|
};
|