43ed9740f2
Admin can view, issue, and delete certificates. Student certificate query now normalises the response shape (works with both paginated and non-paginated API responses). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
431 B
JavaScript
11 lines
431 B
JavaScript
import { http } from '@/services/api/http'
|
|
import { buildUrl, endpoints } from '@/services/api/endpoints'
|
|
|
|
export const apiGetAdminCertificates = (params) =>
|
|
http.get(endpoints.getAdminCertificates, { params })
|
|
|
|
export const apiAddAdminCertificate = (payload) => http.post(endpoints.addAdminCertificate, payload)
|
|
|
|
export const apiDeleteAdminCertificate = (id) =>
|
|
http.delete(buildUrl(endpoints.deleteAdminCertificate, { id }))
|