aboutsummaryrefslogtreecommitdiff
path: root/view/program-json.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/program-json.php')
-rw-r--r--view/program-json.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/view/program-json.php b/view/program-json.php
index 4cce716..08f4289 100644
--- a/view/program-json.php
+++ b/view/program-json.php
@@ -1,4 +1,8 @@
<?php
+$schedule = new Schedule();
+if(!$schedule->isEnabled())
+ throw new NotFoundException('Schedule is disabled');
+
header('Content-Type: application/json');
echo json_encode(program());