You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

  1. <?php
  2. $app->get('/', function($format='html') use($app) {
  3. $res = $app->response();
  4. $params = $app->request()->params();
  5. if (k($params, 'me')) {
  6. $app->redirect('/auth/start?'.http_build_query($params), 302);
  7. }
  8. render('index', array(
  9. 'title' => 'Quill',
  10. 'meta' => '',
  11. 'authorizing' => false
  12. ));
  13. });
  14. $app->get('/creating-a-token-endpoint', function() use($app) {
  15. $app->redirect('http://indiewebcamp.com/token-endpoint', 301);
  16. });
  17. $app->get('/creating-a-micropub-endpoint', function() use($app) {
  18. render('creating-a-micropub-endpoint', array('title' => 'Creating a Micropub Endpoint', 'authorizing' => false));
  19. });
  20. $app->get('/docs', function() use($app) {
  21. render('docs', array('title' => 'Documentation', 'authorizing' => false));
  22. });
  23. $app->get('/docs/post-status', function() use($app) {
  24. render('docs/post-status', array('title' => 'Post Status Documentation', 'authorizing' => false));
  25. });
  26. $app->get('/privacy', function() use($app) {
  27. render('privacy', array('title' => 'Quill Privacy Policy', 'authorizing' => false));
  28. });