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.

33 lines
1.1 KiB

  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It is a breeze. Simply tell Lumen the URIs it should respond to
  9. | and give it the Closure to call when that URI is requested.
  10. |
  11. */
  12. $app->get('/', 'Controller@index');
  13. $app->post('/auth/start', 'IndieAuth@start');
  14. $app->get('/auth/callback', 'IndieAuth@callback');
  15. $app->get('/auth/github', 'IndieAuth@github');
  16. $app->get('/auth/logout', 'IndieAuth@logout');
  17. $app->get('/map/{name:[A-Za-z0-9]+}', 'Controller@map');
  18. $app->get('/settings/{name:[A-Za-z0-9]+}', 'Controller@settings');
  19. $app->post('/settings/{name:[A-Za-z0-9]+}', 'Controller@updateSettings');
  20. $app->post('/database/create', 'Controller@createDatabase');
  21. $app->get('/api/query', 'Api@query');
  22. $app->get('/api/last', 'Api@last');
  23. $app->get('/api/input', 'Api@account');
  24. $app->post('/api/input', 'Api@input');
  25. // Event::listen('illuminate.query', function($query){
  26. // Log::debug($query);
  27. // });