This commit is contained in:
rngsurrounded
2025-03-02 23:58:01 +09:00
11 changed files with 165 additions and 9 deletions
+4 -2
View File
@@ -1,10 +1,12 @@
import { apiFetch } from ".";
import { Reviewer } from "../types/review";
import { Review, Reviewer } from "../types/review";
export const getReviewer = async (token: string) => {
return await apiFetch<Reviewer>(`/review/${token}`);
};
export const getReviewerSubmissions = async (token: string) => {
return await apiFetch(`/review/${token}/submissions`);
return await apiFetch<{ submissions: Review[] }>(
`/review/${token}/submissions`,
);
};