20 lines
436 B
TypeScript
20 lines
436 B
TypeScript
import {
|
|
httpGetInterceptor,
|
|
httpPostInterceptor,
|
|
} from "../http-config/http-interceptor-service";
|
|
|
|
export async function listContest(
|
|
title: string = "",
|
|
size: number,
|
|
page: number
|
|
) {
|
|
return await httpGetInterceptor(
|
|
`contest/pagination?enablePage=1&size=${size}&page=${page}&title=${title}`
|
|
);
|
|
}
|
|
|
|
export async function createTask(data: any) {
|
|
const url = "assignment";
|
|
return httpPostInterceptor(url, data);
|
|
}
|