Real-time Survey Tool Documentation
    Preparing search index...
    • POST(request: Request): Promise<NextResponse<any>>

      Handles POST requests to create a new invite code. Only authenticated users with the 'admin' role can create invite codes.

      Parameters

      • request: Request

        The incoming request object.

      Returns Promise<NextResponse<any>>

      A promise that resolves to a Next.js response object.