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.

20 lines
761 B

  1. <?php
  2. $app->get('/', 'Controller@index');
  3. $app->post('/auth/start', 'IndieAuth@start');
  4. $app->get('/auth/callback', 'IndieAuth@callback');
  5. $app->get('/auth/github', 'IndieAuth@github');
  6. $app->get('/auth/logout', 'IndieAuth@logout');
  7. $app->get('/map/{name:[A-Za-z0-9]+}', 'Controller@map');
  8. $app->get('/settings/{name:[A-Za-z0-9]+}', 'Controller@settings');
  9. $app->post('/settings/{name:[A-Za-z0-9]+}', 'Controller@updateSettings');
  10. $app->post('/database/create', 'Controller@createDatabase');
  11. $app->get('/api/query', 'Api@query');
  12. $app->get('/api/last', 'Api@last');
  13. $app->get('/api/find-from-localtime', 'LocalTime@find');
  14. $app->get('/api/input', 'Api@account');
  15. $app->post('/api/input', 'Api@input');
  16. $app->post('/api/trip-complete', 'Api@trip_complete');