summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 90abea4..022ce42 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,13 +1,7 @@
Leaguer::Application.routes.draw do
- resources :sessions, only: [:new, :create, :destroy]
-
-
#creates sessions as a resource but limits it to these actions
- match '/signup', to: 'users#new', via: 'get'
- match '/signin', to: 'sessions#new', via: 'get'
- match '/signout', to: 'sessions#destroy', via: 'get'
-
+ resources :sessions, only: [:new, :create, :destroy]
resources :users