aboutsummaryrefslogtreecommitdiff
path: root/pages/program-json.php
diff options
context:
space:
mode:
authorMaZderMind2014-11-29 19:31:21 +0100
committerMaZderMind2014-11-29 19:31:21 +0100
commit6fea306ab914287bc2e6ec242f440e31e440110f (patch)
tree21c308f2fc31999ff9c8a31491c5ecddd9b8bf0b /pages/program-json.php
parenta3f189df339781c6aa4177b03cc1175a6bc53efe (diff)
move url rewriting into php
for better compatibility with nginx
Diffstat (limited to 'pages/program-json.php')
-rw-r--r--pages/program-json.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pages/program-json.php b/pages/program-json.php
new file mode 100644
index 0000000..2b5e38b
--- /dev/null
+++ b/pages/program-json.php
@@ -0,0 +1,6 @@
+<?php
+
+require_once('lib/bootstrap.php');
+
+header('Content-Type: application/json');
+echo json_encode(program());