Commit 4c8224ae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move profile account to separate controller

parent c41e66db
class Profiles::AccountsController < ApplicationController
layout "profile"
def show
@user = current_user
end
end
...@@ -99,19 +99,21 @@ Gitlab::Application.routes.draw do ...@@ -99,19 +99,21 @@ Gitlab::Application.routes.draw do
# #
resource :profile, only: [:show, :update] do resource :profile, only: [:show, :update] do
member do member do
get :account
get :history get :history
get :token
get :design get :design
put :update_password
put :reset_private_token put :reset_private_token
put :update_username put :update_username
end end
scope module: :profiles do scope module: :profiles do
resource :account, only: [:show, :update]
resource :notifications, only: [:show, :update] resource :notifications, only: [:show, :update]
resource :password, only: [:new, :create] resource :password, only: [:new, :create, :edit, :update] do
member do
put :reset
end
end
resources :keys resources :keys
resources :groups, only: [:index] do resources :groups, only: [:index] do
member do member do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment