From 704241a3a4f3480eb87260aef9fca8f1ce00e638 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 10 Feb 2016 18:41:28 -0800 Subject: add dashboard with links to all post types --- controllers/controllers.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'controllers') diff --git a/controllers/controllers.php b/controllers/controllers.php index 0b63699..ef619a6 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -41,6 +41,16 @@ function generate_login_token() { ), Config::$jwtSecret); } +$app->get('/dashboard', function() use($app) { + if($user=require_login($app)) { + $html = render('dashboard', array( + 'title' => 'Dashboard', + 'authorizing' => false + )); + $app->response()->body($html); + } +}); + $app->get('/new', function() use($app) { if($user=require_login($app)) { $params = $app->request()->params(); -- cgit v1.2.3