import apiClient from './client'
import type { InviteCodeValidation } from '@/types'

export const inviteApi = {
  async validateCode(code: string): Promise<InviteCodeValidation> {
    const response = await apiClient.get<InviteCodeValidation>(`/invites/validate/${code}`)
    return response.data
  },
}

export default inviteApi
