mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-17 19:06:18 +02:00
💳 Support payments with Stripe (#822)
This commit is contained in:
parent
969ae35971
commit
6f425edeaa
20 changed files with 712 additions and 229 deletions
|
@ -1,8 +1,11 @@
|
|||
import type { IncomingMessage, ServerResponse } from "http";
|
||||
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) => {
|
||||
export const getSession = async (
|
||||
req: Request | IncomingMessage,
|
||||
res: Response | ServerResponse,
|
||||
) => {
|
||||
return getIronSession(req, res, sessionConfig);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue