diff options
Diffstat (limited to 'view/schedule-json.php')
-rw-r--r-- | view/schedule-json.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/view/schedule-json.php b/view/schedule-json.php new file mode 100644 index 0000000..739b71b --- /dev/null +++ b/view/schedule-json.php @@ -0,0 +1,8 @@ +<?php + +$schedule = new Schedule(); +if(!$schedule->isEnabled()) + throw new NotFoundException('Schedule is disabled'); + +header('Content-Type: application/json'); +echo json_encode($schedule->getSchedule()); |