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.

29 lines
1.2 KiB

  1. <?php
  2. $app->get('/', 'Controller@index');
  3. $app->get('/s/{token:[A-Za-z0-9]+}', 'Share@view');
  4. $app->get('/share/current.json', 'Share@current_location');
  5. $app->get('/share/history.json', 'Share@history');
  6. $app->post('/auth/start', 'IndieAuth@start');
  7. $app->get('/auth/callback', 'IndieAuth@callback');
  8. $app->get('/auth/github', 'IndieAuth@github');
  9. $app->get('/auth/logout', 'IndieAuth@logout');
  10. $app->get('/map/{name:[A-Za-z0-9]+}', 'Controller@map');
  11. $app->get('/settings/{name:[A-Za-z0-9]+}', 'Controller@settings');
  12. $app->post('/settings/{name:[A-Za-z0-9]+}', 'Controller@updateSettings');
  13. $app->post('/settings/{name:[A-Za-z0-9]+}/auth/start', 'Controller@micropubStart');
  14. $app->get('/settings/{name:[A-Za-z0-9]+}/auth/callback', 'Controller@micropubCallback');
  15. $app->get('/settings/{name:[A-Za-z0-9]+}/auth/remove', 'Controller@removeMicropub');
  16. $app->post('/database/create', 'Controller@createDatabase');
  17. $app->get('/api/query', 'Api@query');
  18. $app->get('/api/last', 'Api@last');
  19. $app->get('/api/trip', 'Api@trip');
  20. $app->get('/api/find-from-localtime', 'LocalTime@find');
  21. $app->get('/api/input', 'Api@account');
  22. $app->post('/api/input', 'Api@input');
  23. $app->post('/api/trip-complete', 'Api@trip_complete');
  24. $app->post('/api/share', 'Api@share');