frontend
    Preparing search index...
    • POST(
          req: Request,
      ): Promise<
          | NextResponse<
              {
                  academic_id: string;
                  account_type: AccountType;
                  id: string;
                  username: string;
              },
          >
          | NextResponse<{ error: string; success: false }>,
      >

      Request handler for user registration actions. Calls create_user and returns a NextResponse https://nextjs.org/docs/app/api-reference/functions/next-response with the result of the creation attempt.

      Parameters

      • req: Request

      Returns Promise<
          | NextResponse<
              {
                  academic_id: string;
                  account_type: AccountType;
                  id: string;
                  username: string;
              },
          >
          | NextResponse<{ error: string; success: false }>,
      >