X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/565171486f6d90321e0291d5ccc3cf6a1c12e730..32a06b9e5b12b359f6cd6ac5f8d495f2d9fc9b73:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index d2407f705..b8d3fa1a0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -186,7 +186,6 @@ ActionController::Routing::Routes.draw do |map| map.connect '/export/finish', :controller => 'export', :action => 'finish' # messages - map.connect '/user/:display_name/inbox', :controller => 'message', :action => 'inbox' map.connect '/user/:display_name/outbox', :controller => 'message', :action => 'outbox' map.connect '/message/new/:display_name', :controller => 'message', :action => 'new' @@ -195,6 +194,14 @@ ActionController::Routing::Routes.draw do |map| map.connect '/message/reply/:message_id', :controller => 'message', :action => 'reply' map.connect '/message/delete/:message_id', :controller => 'message', :action => 'delete' + # oauth admin pages (i.e: for setting up new clients, etc...) + map.resources :oauth_clients, :path_prefix => '/user/:display_name' + map.connect '/oauth/revoke', :controller => 'oauth', :action => 'revoke' + map.authorize '/oauth/authorize', :controller => 'oauth', :action => 'oauthorize' + map.request_token '/oauth/request_token', :controller => 'oauth', :action => 'request_token' + map.access_token '/oauth/access_token', :controller => 'oauth', :action => 'access_token' + map.test_request '/oauth/test_request', :controller => 'oauth', :action => 'test_request' + # fall through map.connect ':controller/:id/:action' map.connect ':controller/:action'