Spaces:
Runtime error
Runtime error
Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081 Download frontend/src/services/teacherSectionService.ts from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/services/teacherSectionService.ts
- Command line
-
hf download hf://spaces/Talosware/talos-access/frontend/src/services/teacherSectionService.ts
-
curl -L -o teacherSectionService.ts https://huggingface.co/spaces/Talosware/talos-access/resolve/main/frontend/src/services/teacherSectionService.ts
684 Bytes
| import api from './api'; | |
| import type { TeacherSection } from '../types'; | |
| export async function listAssignments(): Promise<TeacherSection[]> { | |
| const { data } = await api.get('/teacher-sections'); | |
| return data; | |
| } | |
| export async function assignTeacher(payload: { section_id: number; teacher_id: number; subject_id: number }): Promise<TeacherSection> { | |
| const { data } = await api.post('/teacher-sections', payload); | |
| return data; | |
| } | |
| export async function removeTeacher(section_id: number, teacher_id: number): Promise<void> { | |
| await api.delete(`/teacher-sections/${section_id}/${teacher_id}`); | |
| } | |
| /** Alias used by SectionsPage */ | |
| export const addTeacherToSection = assignTeacher; | |