mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 14:27:10 +00:00
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import { apiFetch } from ".";
|
|
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<{ submissions: Review[] }>(
|
|
`/review/${token}/submissions`,
|
|
);
|
|
};
|