Handles GET requests to retrieve invite codes. Only authenticated users can access this endpoint. Administrators can retrieve all invite codes, while other users can only retrieve codes they created.
The incoming request object.
A promise that resolves to a Next.js response object.
Handles GET requests to retrieve invite codes. Only authenticated users can access this endpoint. Administrators can retrieve all invite codes, while other users can only retrieve codes they created.