From 0a662e33ee432e2583a934cb161a0a1e5b49b76f Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 17 Dec 2016 15:52:33 -0800 Subject: move logged-out routes to new file --- controllers/auth.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'controllers/auth.php') diff --git a/controllers/auth.php b/controllers/auth.php index e2242de..fb8b6da 100644 --- a/controllers/auth.php +++ b/controllers/auth.php @@ -4,23 +4,6 @@ function buildRedirectURI() { return Config::$base_url . 'auth/callback'; } -$app->get('/', function($format='html') use($app) { - $res = $app->response(); - $params = $app->request()->params(); - if (k($params, 'me')) { - $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('/auth/start', function() use($app) { $req = $app->request(); -- cgit v1.2.3