Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-02 15:29:24 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-02 15:29:24 +0400
commit46bf3a094988327b08c88006c694f0a0a15f7da2 (patch)
tree82458b24bc2d77b1f711bc6579d39080748ab972 /config
parent2be5e6d44347dfb6374b4b2c87a953da06d6167d (diff)
Refactored profile to resource. Added missing flash notice on successfull updated. Update username via ajax
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb20
1 files changed, 12 insertions, 8 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 9c58ce17fc2..1e24e0a5ca1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -69,14 +69,18 @@ Gitlab::Application.routes.draw do
#
# Profile Area
#
- get "profile/account" => "profile#account"
- get "profile/history" => "profile#history"
- put "profile/password" => "profile#password_update"
- get "profile/token" => "profile#token"
- put "profile/reset_private_token" => "profile#reset_private_token"
- get "profile" => "profile#show"
- get "profile/design" => "profile#design"
- put "profile/update" => "profile#update"
+ resource :profile, only: [:show, :update] do
+ member do
+ get :account
+ get :history
+ get :token
+ get :design
+
+ put :update_password
+ put :reset_private_token
+ put :update_username
+ end
+ end
resources :keys