aboutsummaryrefslogtreecommitdiff
path: root/view/program-json.php
blob: 739b71b58a38a942b1b611953e07677580de5546 (plain)
1
2
3
4
5
6
7
8
<?php

$schedule = new Schedule();
if(!$schedule->isEnabled())
	throw new NotFoundException('Schedule is disabled');

header('Content-Type: application/json');
echo json_encode($schedule->getSchedule());