videosphere
    Preparing search index...
    • POST(
          req: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  message: string;
                  userId: `${string}-${string}-${string}-${string}-${string}`;
              },
          >,
      >

      Handles POST requests for this route.

      Parameters

      • req: NextRequest

        The incoming request object.

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  message: string;
                  userId: `${string}-${string}-${string}-${string}-${string}`;
              },
          >,
      >

      A response describing the request result.