mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-27 14:57:13 +02:00
♻️ Create backend package (#643)
This commit is contained in:
parent
7fc08c6736
commit
05fe2edaea
68 changed files with 476 additions and 391 deletions
8
packages/backend/next/edge.ts
Normal file
8
packages/backend/next/edge.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
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);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue