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.

28 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->post('/auth/start', 'IndieAuth@start');
  6. $app->get('/auth/callback', 'IndieAuth@callback');
  7. $app->get('/auth/github', 'IndieAuth@github');
  8. $app->get('/auth/logout', 'IndieAuth@logout');
  9. $app->get('/map/{name:[A-Za-z0-9]+}', 'Controller@map');
  10. $app->get('/settings/{name:[A-Za-z0-9]+}', 'Controller@settings');
  11. $app->post('/settings/{name:[A-Za-z0-9]+}', 'Controller@updateSettings');
  12. $app->post('/settings/{name:[A-Za-z0-9]+}/auth/start', 'Controller@micropubStart');
  13. $app->get('/settings/{name:[A-Za-z0-9]+}/auth/callback', 'Controller@micropubCallback');
  14. $app->get('/settings/{name:[A-Za-z0-9]+}/auth/remove', 'Controller@removeMicropub');
  15. $app->post('/database/create', 'Controller@createDatabase');
  16. $app->get('/api/query', 'Api@query');
  17. $app->get('/api/last', 'Api@last');
  18. $app->get('/api/trip', 'Api@trip');
  19. $app->get('/api/find-from-localtime', 'LocalTime@find');
  20. $app->get('/api/input', 'Api@account');
  21. $app->post('/api/input', 'Api@input');
  22. $app->post('/api/trip-complete', 'Api@trip_complete');
  23. $app->post('/api/share', 'Api@share');