]> git.openstreetmap.org Git - rails.git/blobdiff - config/routes.rb
Moved oauth_clients page to a sub-page of the user - makes it more obvious that the...
[rails.git] / config / routes.rb
index 0ce2f051dcf915daad974f601849af2c19494df4..0bc0d8cd390f17c2bc222730fbfd11f4fc67fcdc 100644 (file)
@@ -196,7 +196,7 @@ ActionController::Routing::Routes.draw do |map|
   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
+  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'