- Create Dockerfile for multi-stage build - Set up GitHub Actions workflow for CI/CD - Implement meal and timetable fetching logic - Add README and configuration files - Include cron job for scheduled execution - Establish .gitignore for build artifacts and environment files
7 lines
340 B
TypeScript
7 lines
340 B
TypeScript
import Comcigan, { School, Weekday } from '@imnyang/comcigan.ts'
|
|
|
|
const comcigan = new Comcigan()
|
|
|
|
export default async function getTimetable({ schoolId, grade, classNum, weekday }: { schoolId: number, grade: number, classNum: number, weekday: number }) {
|
|
return await comcigan.getTimetable(schoolId, grade, classNum, weekday, false)
|
|
}
|