summaryrefslogtreecommitdiff
path: root/controllers/auth.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-12-17 15:52:33 -0800
committerAaron Parecki <aaron@parecki.com>2016-12-17 15:52:33 -0800
commit0a662e33ee432e2583a934cb161a0a1e5b49b76f (patch)
tree75b0a761d4c17a3b00f50642d068a719112a297e /controllers/auth.php
parent926546106ef2fb35359278b9f08798310e81d8fa (diff)
move logged-out routes to new file
Diffstat (limited to 'controllers/auth.php')
-rw-r--r--controllers/auth.php17
1 files changed, 0 insertions, 17 deletions
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();