fix financial and certificates

This commit is contained in:
root
2026-06-05 01:51:12 -04:00
parent 647b96cafc
commit c4d7a06a17
16 changed files with 1689 additions and 374 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
/**
* Admin refunds list (legacy CI `refunds/list.php`).
* Laravel: `GET /api/v1/administrator/refunds/list` with JWT.
* Laravel: `GET /api/v1/finance/refunds` with JWT.
*/
import { apiFetch } from './http'
const BASE = '/api/v1/administrator/refunds'
const BASE = '/api/v1/finance/refunds'
export type RefundListRow = Record<string, unknown>
@@ -42,6 +42,6 @@ export async function fetchRefundsList(params?: {
if (params?.semester) qs.set('semester', params.semester)
if (params?.page != null) qs.set('page', String(params.page))
const suffix = qs.toString() ? `?${qs}` : ''
const body = await apiFetch<unknown>(`${BASE}/list${suffix}`)
const body = await apiFetch<unknown>(`${BASE}${suffix}`)
return normalizeListPayload(body)
}