summaryrefslogtreecommitdiff
path: root/controllers/static.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-01-04 15:26:51 -0800
committerAaron Parecki <aaron@parecki.com>2017-01-04 15:26:51 -0800
commitacafb9192a6402a3f3d60d5e6af11cb4576fc96c (patch)
treed70737a0ee528cff04673ff6b66a1667fbd302bf /controllers/static.php
parente7fe68f73e441778f80683383ddb2ffe7a48f85c (diff)
add tags, slug and status field to quill editor
Diffstat (limited to 'controllers/static.php')
-rw-r--r--controllers/static.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/controllers/static.php b/controllers/static.php
index bf9740d..c53fa14 100644
--- a/controllers/static.php
+++ b/controllers/static.php
@@ -7,14 +7,11 @@ $app->get('/', function($format='html') use($app) {
$app->redirect('/auth/start?'.http_build_query($params), 302);
}
- ob_start();
render('index', array(
'title' => 'Quill',
'meta' => '',
'authorizing' => false
));
- $html = ob_get_clean();
- $res->body($html);
});
$app->get('/creating-a-token-endpoint', function() use($app) {
@@ -22,16 +19,18 @@ $app->get('/creating-a-token-endpoint', function() use($app) {
});
$app->get('/creating-a-micropub-endpoint', function() use($app) {
- $html = render('creating-a-micropub-endpoint', array('title' => 'Creating a Micropub Endpoint', 'authorizing' => false));
- $app->response()->body($html);
+ render('creating-a-micropub-endpoint', array('title' => 'Creating a Micropub Endpoint', 'authorizing' => false));
});
$app->get('/docs', function() use($app) {
- $html = render('docs', array('title' => 'Documentation', 'authorizing' => false));
- $app->response()->body($html);
+ render('docs', array('title' => 'Documentation', 'authorizing' => false));
+});
+
+$app->get('/docs/post-status', function() use($app) {
+ render('docs/post-status', array('title' => 'Post Status Documentation', 'authorizing' => false));
});
$app->get('/privacy', function() use($app) {
- $html = render('privacy', array('title' => 'Quill Privacy Policy', 'authorizing' => false));
- $app->response()->body($html);
-}); \ No newline at end of file
+ render('privacy', array('title' => 'Quill Privacy Policy', 'authorizing' => false));
+});
+