Move profile account to separate controller
This commit is contained in:
parent
c41e66db52
commit
4c8224ae1e
2 changed files with 13 additions and 4 deletions
7
app/controllers/profiles/accounts_controller.rb
Normal file
7
app/controllers/profiles/accounts_controller.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Profiles::AccountsController < ApplicationController
|
||||
layout "profile"
|
||||
|
||||
def show
|
||||
@user = current_user
|
||||
end
|
||||
end
|
|
@ -99,19 +99,21 @@ Gitlab::Application.routes.draw do
|
|||
#
|
||||
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
|
||||
|
||||
scope module: :profiles do
|
||||
resource :account, 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 :groups, only: [:index] do
|
||||
member do
|
||||
|
|
Loading…
Reference in a new issue