Schedule API

A simple API that returns daily schedule items based on the current day of the week.

Files

  • schedule.yaml - Contains the weekly schedule data
  • backend/index.ts - HTTP endpoint that serves the schedule

How it works

  1. The API reads the schedule from schedule.yaml
  2. Determines the current day based on Pacific time
  3. If it's after 8pm Pacific, it uses tomorrow's schedule instead
  4. Returns the schedule items for that day as a multiline string (joined with \n)

Usage

Make a GET request to the endpoint to receive the current day's schedule.

Example response for Tuesday:

6) Gwen aft
MJ) call w Ivan

If there are no items for a day (like Sunday), it returns an empty string.