Add interface to create and update user accounts

This commit is contained in:
1resu 2021-12-19 04:13:05 +01:00
parent 5c89cf1501
commit 5f3713aecd
11 changed files with 100 additions and 1 deletions

View file

@ -1,4 +1,6 @@
Rails.application.routes.draw do
get 'users/new'
get 'users/show'
get 'log_in' => 'sessions#new', :as => :log_in
match 'log_out' => 'sessions#destroy', :as => :log_out, :via => [:get, :post]
resources :sessions, :only => [:new, :create, :destroy]
@ -15,5 +17,9 @@ Rails.application.routes.draw do
end
end
resources :users
match '/:controller(/:action(/:id))', :via => [:get, :post]
match '/users', to: 'users#index', via: 'get'
match '/users/:id', to: 'users#show', via: 'get'
end