10 lines
321 B
TypeScript
10 lines
321 B
TypeScript
|
import axiosInstance from "./axiosInstance";
|
||
|
|
||
|
interface StudentResponse {
|
||
|
max_pages: number,
|
||
|
students: {first_name: string, last_name: string, index: number, mode: boolean; group: any}[]
|
||
|
}
|
||
|
|
||
|
export const getStudents = () => axiosInstance.get<StudentResponse>(
|
||
|
"http://127.0.0.1:5000/api/coordinator/students"
|
||
|
)
|