import { wireHTTP } from '#pikku/pikku-types.gen.js'
import { isCompany } from '../../permissions.js'
import { getCompanyCandidates, getCompanyCandidate } from './candidate.function.js'

wireHTTP({
  method: 'get',
  route: '/company/candidate',
  func: getCompanyCandidates,
  permissions: {
    isCompany
  }
})

wireHTTP({
  method: 'get',
  route: '/company/candidate/:candidateId',
  func: getCompanyCandidate
})